[EMAIL PROTECTED] wrote:

> Hi, All!
>
> I just noticed a little problem:
> When I tried to serialize class with "private static int xxx" IBM's jdk hung
> (Blackdown's didn't :) )
>
> It works fine if I make it "private transient static int xxx".
>
> My question is: What java SUPPOSED to do with class like this. I haven't seen
> it in documentation but I guess it should just ignore static fields.
> Do I have to make static fields ALWAYS explicitly TRANSIENT?
>
> Thanks.

No; I would suspect this is a bug in the object serialization java libs coming
with the IBM jdk; static fields are specified in the ObjectOutput documentation
to be implicitly transient when serializing objects.

This is a wild guess, but it might help substituting the IBM class libs with the
BlackDown class files, although this might cause more harm than good.

--

jørgen h. seland

dag   : tlf = 93 83 17 74
        mail = [EMAIL PROTECTED]
kveld : tlf = 226 95 336
        mail = [EMAIL PROTECTED]



----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to