David,

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

-chris

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to