[kaffe] bug report: KaffeInternal test fails w/ possible fixes

jrandom auto97841 at hushmail.com
Mon Oct 27 15:41:02 PST 2003


Hello again (and thanks for getting the SecureRandom patch in there so
fast Tim!)

redoing a clean build from CVS on freebsd (4.8-RELEASE on i386) with
gcc (version 3.3.1 20030707 (prerelease) [FreeBSD]), I'm pulling the
failure at "make check" that I mentioned a few weeks ago (http://www.kaffe.org/pipermail/kaffe/2003-
October/044159.html), though last time I didn't look into what the problem
was.

FAIL: KaffeInternal.java

I'm not sure how the testing framework kaffe uses works, but from the
source of KaffeInternal.java and KaffeInternal.out, I get the impression
the exception thrown has changed (from java.lang.NoClassDefFoundError
to java.lang.SecurityException).  

% sh ./kaffe/scripts/kaffe -cp test/regression/ KaffeInternal
java.lang.SecurityException: Prohibited package: kaffe/lang/ThreadStack
   <<No stacktrace available>>

I havent read that part of the JLS to see if kaffe is required to use
SecurityException or NoClassDefFoundError.  I'm tempted to think the
Error is more correct since no one should ever try {} catch {} this (though
in an ideal world, this probably wouldn't be compileable except for the
bootstrap).  

Should the KaffeInternal.out be updated, or should kaffe/kaffevm/classMethod.c:917
use JAVA_LANG(NoClassDefFoundError) instead of JAVA_LANG(SecurityException)?

But as it doesn't matter for my uses, I'm just going to go ahead and
run this kaffe with 1 out of 144 regression tests failing.  

-jrandom



Concerned about your privacy? Follow this link to get
FREE encrypted email: https://www.hushmail.com/?l=2

Free, ultra-private instant messaging with Hush Messenger
https://www.hushmail.com/services.php?subloc=messenger&l=434

Promote security and make money with the Hushmail Affiliate Program: 
https://www.hushmail.com/about.php?subloc=affiliate&l=427




More information about the kaffe mailing list