[1187] in java-interest

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

re: VM spec.

daemon@ATHENA.MIT.EDU (Eduardo Pelegri-Llopart)
Fri Aug 25 15:38:40 1995

Date: Fri, 25 Aug 1995 09:27:40 -0700
From: pelegri@calterra.Eng.Sun.COM (Eduardo Pelegri-Llopart)
To: java-interest@java.Eng.Sun.COM, loofbour@cis.ohio-state.edu

I wrote a small C++ dump program for a subset of the .class format,
and these were my gotcha's.

1) The VM spec is inconsistent about the way sizes of attributes are
encoded, in the first page of the Class format spec (page 51 for me)
it says that the length of all attributes are u4, while later on they
claim that some attributes have u2.  u4 is correct. (I've filed a bug
on this).

2) C_Long and C_Double constants take 2 entries in the CP table.  This
is described, but I just overlooked it.


Then, of course, somebody gave me a pointer to a .java program that
uses all the classes in the java distribution.  It is very nice to
see code reuse!  Funny, now that I think about it, I have seen very
few code reuse since I arrived to C++-land... :-)


	- eduardo
-
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