[jboss-dev] Array class loading regression in jdk6
Scott M Stark
scott.stark at jboss.com
Sun Dec 17 00:04:52 EST 2006
An issue where ClassLoader.loadClass(String) is not resolving arrays is
showing up as users start to use jdk6:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6434149
Exception in thread "main" java.lang.ClassNotFoundException: [Ljava.lang.String;
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at test.main(test.java:7)
The workaround is to use the Class.forName(String, boolean, ClassLoader)
method.
More information about the jboss-development
mailing list