[Kaffe] bug in Class.forName()

Parmelan, Edouard EP510777 at exchange.FRANCE.NCR.com
Tue Jan 26 06:11:30 PST 1999


Hi,

> // File LoadBug.java
> public class LoadBug {
>     public static void main(String[] argv) throws Exception {
> 	Class result = Class.forName("[[[LInteger;");
> 	System.out.println("result is \"" + result + "\"");
>     }
> }
> 
> // JDK output
> 
> % java LoadBug
> java.lang.ClassNotFoundException: [[[LInteger;
>         at LoadBug.main(Compiled Code)
> 
> // Kaffe output
> 
> % kaffe LoadBug
> java.lang.NullPointerException
>         at LoadBug.main(3)
SEGV in lookupArray(c = 0x0) classMethod.c
called from classFromSig() in itypes.c

May be we should add a NULL test in classFromSig()
or a NULL test in lookupArray().

Edouard.

> 
> 
> 
> I hope that helps
> mo dejong
> dejong at cs.umn.edu
> 


More information about the kaffe mailing list