GCJ with OpenJDK Java API instead of GNU Classpath
Bryce McKinlay
bmckinlay@gmail.com
Thu May 7 13:50:00 GMT 2009
On Thu, May 7, 2009 at 2:43 PM, Andrew Haley <aph@redhat.com> 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
More information about the Java
mailing list