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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham 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-24 05:20:03 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!newsfeed2.earthlink.net!newsfeed.earthlink.net!newsmaster1.prod.itd.earthlink.net!newsread1.prod.itd.earthlink.net.POSTED!not-for-mail Message-ID: <3B5D5B79.F2DC527E@earthlink.net> From: "Marc A. Criley" Organization: Quadrus Corporation X-Mailer: Mozilla 4.73 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Java portability (was: An Ada IDE and discussions) 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 24 Jul 2001 12:19:54 GMT NNTP-Posting-Host: 158.252.122.160 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 995977194 158.252.122.160 (Tue, 24 Jul 2001 05:19:54 PDT) NNTP-Posting-Date: Tue, 24 Jul 2001 05:19:54 PDT X-Received-Date: Tue, 24 Jul 2001 05:17:29 PDT (newsmaster1.prod.itd.earthlink.net) Xref: archiver1.google.com comp.lang.ada:10504 Date: 2001-07-24T12:19:54+00:00 List-Id: 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