comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Ada/JVM: cannot import abstract subprogram
Date: Fri, 22 Mar 2013 12:56:32 -0700 (PDT)
Date: 2013-03-22T12:56:32-07:00	[thread overview]
Message-ID: <f011046e-f3ba-4fc3-86b1-2aded0036fe7@googlegroups.com> (raw)

A couple of years ago or so I got the three interesting GNAT compilers (Ada->native-windows, Ada->Dotnet-VM, and Ada->Java-VM) I remember getting some simple things working on the JVM one, enough that I could output text to the console via Java's println or Ada's Print_line as well as doing some minor applet manipulation (drawing shapes for a class).

Anyway, I was wondering about perhaps applying the idea over here ( http://ruby-in-browser.googlecode.com/svn/trunk/evalruby/index.html ), combining w/ OpenToken (which, IIUC, has an already-working out-of-the-box Ada tokenizer) and seeing what all I could do towards getting a <Script language="Ada"> tag working. {Yes, I know I'd also need a DOM package... but XML/Ada says it has one.}

So I went and grabbed the 2012 JVM-GNAT and tried the bind_jre program (after some failures w/ JVM2Ada) and found that it could not handle the new Java 7 (version 51 class-files, IIUC)... or the version 50 class files. So, I obtained Java 1.4 and installed that in an effort to get one that would bind... I was half-way successful: it dumped out the million-and-a-half (actually 3622) ADS files.

But there's a problem: in many of the files there are subprograms marked abstract and then pragmas for importation yielding the error of  "cannot import abstract subprogram" -- this leads me to believe there is something wrong with the jvm2ada packaged w/ GNAT GPL 2012 {remember it didn't generate these errors a couple years ago}... is anyone else having similar troubles? (I remember it being fairly easy to get the JVM-GNAT to generate [and interface w/] class-files, the rough spot being the Java-ideology of having all operations be on references and the Ada-ideology of operating on the types themselves.)

Also, it seems a bit odd that they [Adacore] didn't use the opportunity to show off the interfacing Aspects of Ada 2012 in this version of jvm2ada.



             reply	other threads:[~2013-03-22 19:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-22 19:56 Shark8 [this message]
2013-03-23 14:53 ` Ada/JVM: cannot import abstract subprogram John B. Matthews
2013-03-23 18:09   ` Shark8
2013-04-02 20:10     ` Blady
2013-04-03 12:05       ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox