[Kaffe] another classloader bug.
    Moses DeJong 
    dejong at cs.umn.edu
       
    Thu Feb  4 16:56:45 PST 1999
    
    
  
Hello.
It looks like the classloader in kaffe does not return the
same thing as the JDK for this test case. This first one
works just fine but the second one crashes.
public class LoadBug {
    public static void main(String[] argv) throws Exception {
	try {
	    Class.forName("[[[LInteger;");
	} catch (ClassNotFoundException e) {
	    System.out.println("caught 1");
	}
	try {
	    Class.forName("[int");
	} catch (IllegalArgumentException e) {
	    System.out.println("caught 2");
	}
    }
}
JDK
caught 1
caught 2
Kaffe
% kaffe LoadBug
caught 1
java.lang.NullPointerException
        at LoadBug.main(LoadBug.java:10)
I hope that helps
mo dejong
dejong at cs.umn.edu
    
    
More information about the kaffe
mailing list