BZ #57: Class.forName must throw ClassNotFoundException

Status fields:

creation_ts:2008-03-26 12:07
component:vm
version:default branch
rep_platform:All
op_sys:Linux
bug_status:RESOLVED
resolution:FIXED
reporter:twisti@complang.tuwien.ac.at
This bug is only created to have a reference for the unit test.

The stacktrace should look like this:

$ cacao test
Exception in thread "main" java.lang.ClassNotFoundException: x
        at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:186)
        at test.main(test.java:6)

Comment #1 by twisti@complang.tuwien.ac.at on 2008-03-26 14:27:09

Unit test added:

http://mips.complang.tuwien.ac.at/hg/cacao/rev/8a65518935cf