comp.lang.ada
 help / color / mirror / Atom feed
* Ada/JVM: cannot import abstract subprogram
@ 2013-03-22 19:56 Shark8
  2013-03-23 14:53 ` John B. Matthews
  0 siblings, 1 reply; 5+ messages in thread
From: Shark8 @ 2013-03-22 19:56 UTC (permalink / 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.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-03 12:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-22 19:56 Ada/JVM: cannot import abstract subprogram Shark8
2013-03-23 14:53 ` John B. Matthews
2013-03-23 18:09   ` Shark8
2013-04-02 20:10     ` Blady
2013-04-03 12:05       ` Stephen Leake

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