BZ #126: Faulty ClassLoader behavior should be corrected

Status fields:

creation_ts:2009-04-02 17:02
Any user-defined classloader is expected to either return a class or throw an exception
in methods like findClass() or loadClass(). Although this is not explicitly specified in
the documentation [1], I still believe this to be true.

The problem is that HotSpot corrects this faulty behavior and therefore most developers
just don't care and rely on this correction. There even is a regression test checking
this correction, it can be found at:

We need to do the correction in Cacao as well. You know the rules of the game, the RI is
always right :(


Comment #1 by on 2009-04-02 17:57:39

We are not correcting the faulty behavior as described above. There is also a new flag
-XX:+PrintWarnings which should be used to log such suspicious application behavior.
This is the fix:

Comment #2 by on 2009-04-02 17:58:33

(In reply to comment #1)
> We are not correcting ...
Clearly it should say "we are now correcting" :)