[1152] in java-interest

home help back first fref pref prev next nref lref last post

Problems with the 1.0A3 Virtual Machine Spec (vs. the compiler)

daemon@ATHENA.MIT.EDU (Nathan Loofbourrow)
Fri Aug 25 03:29:12 1995

From: Nathan Loofbourrow <loofbour@cis.ohio-state.edu>
Date: Tue, 22 Aug 1995 15:43:15 -0400
To: java-interest@java.sun.com

Haven't heard back from the folx at java@java, so thought I'd try this
forum.

I've been trying to use the Virtual Machine spec to grok the output of
the 1.0a3 javac compiler, and having some troubles. To wit:

1. The version number, according to the Spec, is supposed to be "45",
   but the file I complied had "131117". (45+0x20000 ?)

2. The Code attribute produced by the compiler has an attribute_length
   of 0.

3. The code_length of the Code attribute is wrong (it suggests 700 or
   so bytes, where the entire class is 450 bytes long).

For reference, I am trying to parse the output from the "HelloWorld"
class provided in the docs on the WWW. I suppose I should just assume
this is "fixed in beta", but it'd be nice to know if that's the real
error.

Are there other folks trying to read and write Java class files? I'd
be interested in talking with other folks interested in decompiling
class files, and/or compiling alternate languages to Java bytecode;
but that doesn't seem to quite fall under the java-interest or
java-porting charter.

nathan
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post