On my Debian GNU/Linux sid chroot, I have java-gcj-compat installed allowing me to do (thanx man-di!):
JAVA_HOME=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0 ant -Dbuild.compiler=gcj runDoclet
JAVA_HOME=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0 ant -Dbuild.compiler=gcj test-all
The first command creates the custom doclets, while the second command compiles the CDK and runs the JUnit tests. For Classpath developers: here's how to check out the cdk module from CVS.
The results are interesting: while Sun's JVM gives 11 problems, gij gives 399 problems. The test-all target creates a reports/result.txt document listing all failing tests, and I've put the diff -u for the two JVMs online. I will make diffs for jamvm, kaffe and cacao too.
I hope this gives the free Java community extra feedback on the excellent work they are doing.
The tests with kaffe 1.1.6 are just finished, and the diff with the SUN JVM results is found here.
ReplyDeleteGreat! thanks a lot for doing this, Egon. You should tell Mark Wielaard to add you to Planet Classpath, so that we get the good news with our daily planet :)
ReplyDeleteI've looked at the Kaffe test failures, and it seems tome that the tests assume the existence of apache XML parsers. You could try either (pre)setting the parser configuration in the tests to use the GNU parsers, or you could add the Apache parsers to Kaffe's (boot)classpath to see how well it works. I'm interested if Kaffe would come even closer to the JDK :)
cheers,
dalibor topic