[kaffe] ecj-compiled kaffe fails in regression tests

Ito Kazumitsu kaz at maczuka.gcd.org
Thu Dec 8 22:03:16 PST 2005


From: Ito Kazumitsu <kaz at maczuka.gcd.org>
Date: Fri, 09 Dec 2005 09:41:24 +0900 (JST)

> I ran these tests by compiling with various compilers on various
> VMs.  The resuls are attached below.  Seeing the results, I have
> had an impression that
> 
>   (1) TestSerial* tests have something specific to Kaffe because
>       they never produce expected results when run on Sun's JDK.

Sun's JDK gives this (when DEBUG is set to true):

Generating canonical stream
  Serializing TestSerialFields$Test0001
    Exception: java.lang.IllegalAccessException
java.lang.IllegalAccessException: Class TestSerialFields can not access a member of class TestSerialFields$Test0001 with modifiers "private"
        at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
        at java.lang.Class.newInstance0(Class.java:344)
        at java.lang.Class.newInstance(Class.java:303)
        at TestSerialFields.generateBytes(TestSerialFields.java:529)
        at TestSerialFields.main(TestSerialFields.java:623)
Exception in thread "main" java.lang.NullPointerException
        at TestSerialFields.checkClass(TestSerialFields.java:604)
        at TestSerialFields.main(TestSerialFields.java:633)

If Sun's JDK is correct, Kaffe fails to detect this IllegalAccessException
and the regression tests have been depending on such behavour of Kaffe.



More information about the kaffe mailing list