tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: How to get fields list in order
Date Thu, 02 Nov 2006 14:50:04 GMT

>> Since you mentioned byte offsets, I have to ask: are you trying to
>> subvert the serialization system? Or, even worse, inspect the object
>> memory from with JNI?
> The latter, sort of.  I'm using a package which puts a wrapper around
> JNI to make it easier to create windows standard .dll's from java
> classes, and passing them structures from Visual Basic and other
> external apps.  To modify return parameters, I need the byte offsets of
> the various pieces of the structure, which I'm mirroring in my java
> classes.

Why not just use the built-in JNI C-to-Java capabilities? If you need to
modify objects, why not "modify" them by creating new objects containing
the desired data, instead of trying to lobotomize an existing object?

Perhaps I don't really understand what you are doing.


View raw message