From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: ** X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_00,FROM_WORDY, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,be23df8e7e275d73 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-30 13:04:37 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!colt.net!dispose.news.demon.net!demon!sn-uk-post-01!supernews.com!xo.supernews.co.uk!not-for-mail From: "Dave Adlam" Newsgroups: comp.lang.ada Subject: Re: Java portability (was: An Ada IDE and discussions) Date: Mon, 30 Jul 2001 21:00:39 +0100 Organization: Posted via Supernews, http://www.supernews.com Message-ID: Reply-To: "Dave Adlam" References: <%cR67.1385$mz6.4505748@nnrp3.proxad.net> <9jgopl$5v6$1@s1.read.news.oleane.net> <9jh2cs$aon$1@s1.read.news.oleane.net> <2sU67.1485$di7.4670499@nnrp3.proxad.net> <9jhb8u$g3s$1@s1.read.news.oleane.net> <3B5C4A92.647FC2EC@earthlink.net> <2bb77.5186$DL4.5097616@nnrp5.proxad.net> <3B5D5B79.F2DC527E@earthlink.net> X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 X-Complaints-To: abuse@xo.supernews.co.uk Xref: archiver1.google.com comp.lang.ada:10782 Date: 2001-07-30T21:00:39+01:00 List-Id: I seem to remember a post in the past (about the time JGNAT came out) from Robert Dewar that suggested that the JGNAT Java Pragmas followed a draft AI. This is a vague recollection so please let me apologise in advance if I got that wrong (especially to Robert Dewar). If you go to the jgnat_ug HTML file in the docs directory of your jGNAT installation and follow the following series of links What This Guide Contains ->Java-Specific Pragmas -> Handling Circularities using With-Type Clauses -> A Word of Caution you will find a statement on this issue. Marc A. Criley wrote in message <3B5D5B79.F2DC527E@earthlink.net>... >nicolas wrote: >> >> We never tried Ada for the JVM >> Is there a standard specification when you want to access Java libraries, or >> is it specific for each vendor (Ada-Magic, JGNAT, others ?) >> If we write Ada code for the JVM, will it be the same for all compiler >> vendors which support it ? > >Since there's no officially recognized Java standard yet, there's no Ada >standard specification for interfacing to it (as there is for C, >Fortran, and COBOL, and just recently for C++), so vendors are free to >forge their own specification. > >I'm nearly certain that each vendor has their own means of interfacing >to the Java libraries. I've not looked at the specifics of how AdaMagic >does it, but I know that JGNAT added Java-specific pragmas to support >interfacing. In addition, the documentation describing how Java >Interfaces are implemented (as discriminants) suggests some "magic" >going on inside the compiler. > >It's not the _Ada_ code for a JVM that will differ between vendors, it's >the interfacing to the class libraries. I would expect vanilla Ada code >to be quite portable, but the interfaces to Java classes will resemble >one another, and differ in the details. > >Marc A. Criley