[459] in java-interest
Re: opcodes
daemon@ATHENA.MIT.EDU (Chuck McManis)
Fri Jun 23 02:40:22 1995
Date: Thu, 22 Jun 1995 23:09:44 -0700
From: cmcmanis@scndprsn.Eng.Sun.COM (Chuck McManis)
To: java-interest@java.Eng.Sun.COM, mcculley@greatwall.cctt.com
Also note that in the description of the class file attributes are listed
as being
Generic_Attribute {
u2 name_index
u4 length;
u1 data[length];
}
Which is correct, but in some of the specific attributes (like SourceFile)
they are listed as :
SourceFile {
u2 name -> "SourceFile"
>> u2 length -> (SHOULD be u4, is always '2')
u2 filename -> "file where it was compiled."
}
So watch out for those, and while name is described as the index
of a string in the constant pool, it is actually a constant pool
item of type CONSTANT_asciz, not CONSTANT_String.
--Chuck
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com