tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <>
Subject RE: How to get fields list in order
Date Thu, 02 Nov 2006 14:53:19 GMT
> From: David Kerber [] 
> Subject: Re: How to get fields list in order
> Then I could just check the field type, and increment the 
> byte counter by the appropriate amount (i.e. if the java 
> field type is int, then I know the width in the passed
> structure is 4 bytes, etc).

If the structure is intended to mirror the layout of the Java object,
then your assumptions are flawed.  For example, in a 64-bit JVM,
integers are 8 bytes wide, of which only 4 are actually used.  Also,
booleans have no defined size, and JVM implementations are free to
allocate whatever space deemed appropriate, from 1 bit upwards.

 - Chuck

MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message