bug in Array.newInstance(Class, int[])
Alexandre Oliva
oliva at dcc.unicamp.br
Fri Feb 12 04:28:53 PST 1999
On Dec 27, 1998, Gerhard Paulus <gpaulus at stud.uni-frankfurt.de> wrote:
> 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).
Yep. I've just fixed it, thanks for your report.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil
More information about the kaffe
mailing list