[Kaffe] bug in Class.forName()

Moses DeJong dejong at cs.umn.edu
Tue Jan 26 05:01:53 PST 1999

Hello all.

I ran into a problem with the Class.forName() method related to
arrays. I looked around in Class.c but I could not make heads
or tails of it so I am posting this little snip of code in hopes
that the person(s) who wrote the code could figure out why kaffe
does not give the same results as the JDK.

// 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
        at LoadBug.main(3)

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

More information about the kaffe mailing list