bug in Array.newInstance(Class, int[])

Gerhard Paulus gpaulus at stud.uni-frankfurt.de
Sun Dec 27 11:56:15 PST 1998


Kaffe 1.0.b3 :
code like this gives a NullPointerException

int[] count= new int[1] ; // 1 seems to be the problem
count[0]= 3 ;
Object array= Array.newInstance(elementClass, count) ;

This is legal code and shouldn't throw an exception
(Sun's VM doesn't have the problem).

Bye,
Gerhard




More information about the kaffe mailing list