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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9d4df76c26744691 X-Google-Attributes: gid103376,public From: Geoff Bull Subject: Re: Combinding Ada and Java? Date: 1999/10/26 Message-ID: <3814F37D.7032C1D4@research.canon.com.au>#1/1 X-Deja-AN: 540548268 Content-Transfer-Encoding: 7bit References: <38106CB9.8F5A5CE9@celsiustech.se> <3813B6FC.C3590215@research.canon.com.au> <7v1sqb$8at$1@nnrp1.deja.com> Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@research.canon.com.au X-Trace: cass.research.canon.com.au 940897126 8198 203.12.174.227 (26 Oct 1999 00:18:46 GMT) Organization: Canon Information Systems Research Australia Mime-Version: 1.0 NNTP-Posting-Date: 26 Oct 1999 00:18:46 GMT Newsgroups: comp.lang.ada Date: 1999-10-26T00:18:46+00:00 List-Id: Ted Dennison wrote: > > In article <3813B6FC.C3590215@research.canon.com.au>, > Geoff Bull wrote: > > I don't know of a binding generator similar to AdaJNI. > > If someone wanted to make one, the Java syntax that comes with OpenToken > ( http://www.telepath.com/dennison/Ted/OpenToken/OpenToken.html ) would > get you at least halfway there. > I played 'round with a generator for bindings to Java classes until: 1. I found out about Ainsley Software's AdaJNI. 2. I did everything I needed with raw JNI using Cafe1815, so I no longer had a need for it (beyond satisying my own curiosity) 3. I was concerned about the legalities of generating a binding using Sun's sources (there is still not a free Swing - which was my main interest) The approach I took was a custom doclet for Javadoc. This provided me with a known good Java parser. The only drawback I found in using javadoc was that the code was written in Java. It would, of course, be possible to hand build a binding to the doclet classes so that the doclet could be written in Ada. I still had some hard problems to overcome, but if anybody is interested in seeing what I did, mail me at: gbull@acenet.com.au