javap makes incorrect output

Kiyo Inaba inaba at src.ricoh.co.jp
Thu Jul 16 11:59:58 PDT 1998


When I use javap in sun.tools, I noticed output from Kaffe-1.00
is different from kaffe-0.10. Or actually, the difference may
come from classes.zip from JDK-1.1.6 and Klasses.jar.

Since there are 'NUL' characters in the output I copied it by
using 'less' output.

Klasses.jar produces something like,
------------------------------------------------------------
    public  void uncaughtException(java.lang.Thread, java.lang.Throwable);
}

Method java.lang.ThreadGroup()
0^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ aload_0
------------------------------------------------------------

Classes.zip produces something like,
------------------------------------------------------------
    public java.lang.String toString();
}

Method java.lang.ThreadGroup()
   0 aload_0
------------------------------------------------------------

Someone can easily imagine why I have to use javap for
ThreadGroup :-)

Kiyo


More information about the kaffe mailing list