Name: cl74495 Date: 04/13/2000
[ Carlos.Lucasius@Canada -- April 13, 2000: regression of bug 4143615? ]
import java.net.*;
JavaVM fails when loadClass() method in URLClassloader has been invoked with argument null
.
Try the following program.
class test{
public static void main(String args[]){
try{
URL url[] = { new URL("file://c/work.jar") };
URLClassLoader cl = new URLClassLoader(url);
System.out.println(cl.loadClass(null));
}catch(Throwable t){
t.printStackTrace();
}
}
}
(Review ID: 103418)
======================================================================
- duplicates
-
JDK-4292814 findLoadedClass(null) raises exception incorrectly
-
- Resolved
-