tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: How to get fields list in order
Date Thu, 02 Nov 2006 14:33:18 GMT
> From: David Kerber [mailto:dckerber@verizon.net] 
> Subject: Re: How to get fields list in order
> 
> To modify return parameters, I need the byte offsets of 
> the various pieces of the structure, which I'm mirroring
> in my java classes.

That's a very scary way to do it.  Using order to determine byte offsets
is not reliable, since that can change from JVM to JVM and across
different platforms and CPU architectures.  What's wrong with gettng the
field IDs during class initialization and using the GetField / PutField
JNI methods as needed?

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
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: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message