Re: GCJ with OpenJDK Java API instead of GNU Classpath

Bryce McKinlay <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
On Thu, May 7, 2009 at 2:43 PM, Andrew Haley <[email protected]> wrote:
> Andrew John Hughes wrote:
>
>> There's actually no need to do a wholesale replacement of
>> everything.  GCJ already overrides quite a number of classes from
>> GNU Classpath with its own versions (including Object IIRC).

I agree. GCJ-OpenJDK could be built following a very similar approach.

>> Quite a number of packages in Classpath are just pure Java and are
>> used as is in GCJ.  This even extends to Swing, where the native JNI
>> code from Classpath is used (GCJ usually prefers CNI).
>>
>> It really depends what you want the end result to be.  Having some
>> hybrid with all the packages is probably an easier goal than trying
>> to pass the TCK with the result... ;)
>
> Huh?  I was assuming Java compatibility was the goal.

Sure, it won't be perfect. But this approach gets you ~90% of the
compatibility with ~10% of the effort!

Bryce
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.