From: Paul Tomblin on
I just insalled the FindBugs plugin in Eclipse, and while it whines about
a bunch of stuff that I don't care about, it's found a few real ones. But
there is a warning that I don't understand at all. A transient variable
in a serializable class is marked:

H B Se: The field <variable name> is transient but isn't set by
deserialization.

What does that mean?

--
Paul Tomblin <ptomblin(a)xcski.com> http://blog.xcski.com/
Never underestimate the bandwidth of a station wagon full of
tapes hurtling down the highway.
-- Andrew Tannenbaum possibly quoting Warren Jackson
From: Jeff Higgins on

Paul Tomblin wrote:
>I just insalled the FindBugs plugin in Eclipse, and while it whines about
> a bunch of stuff that I don't care about, it's found a few real ones. But
> there is a warning that I don't understand at all. A transient variable
> in a serializable class is marked:
>
> H B Se: The field <variable name> is transient but isn't set by
> deserialization.
>
> What does that mean?
>

<http://en.wikibooks.org/wiki/Java_Programming/Keywords/transient>


From: Jeff Higgins on

Jeff Higgins wrote:
>
> Paul Tomblin wrote:
>>I just insalled the FindBugs plugin in Eclipse, and while it whines about
>> a bunch of stuff that I don't care about, it's found a few real ones.
>> But
>> there is a warning that I don't understand at all. A transient variable
>> in a serializable class is marked:
>>
>> H B Se: The field <variable name> is transient but isn't set by
>> deserialization.
>>
>> What does that mean?
>>
>
> <http://en.wikibooks.org/wiki/Java_Programming/Keywords/transient>
>

<http://en.wikipedia.org/wiki/Serialization#Java>


From: Paul Tomblin on
In a previous article, "Jeff Higgins" <oohiggins(a)yahoo.com> said:
>
>Paul Tomblin wrote:
>>I just insalled the FindBugs plugin in Eclipse, and while it whines about
>> a bunch of stuff that I don't care about, it's found a few real ones. But
>> there is a warning that I don't understand at all. A transient variable
>> in a serializable class is marked:
>>
>> H B Se: The field <variable name> is transient but isn't set by
>> deserialization.
>>
>> What does that mean?
>>
>
><http://en.wikibooks.org/wiki/Java_Programming/Keywords/transient>

Excuse me, I didn't mean that I didn't know why I put "transient" in my
own program, I meant to ask why FindBugs thinks it is a problem that it
isn't set by deserialization. I initialize the variable in the default
ctor. Would it be happier if I initialized it in the declaration line?


--
Paul Tomblin <ptomblin(a)xcski.com> http://blog.xcski.com/
Can't get out of 'vi'? Common problem. Don't worry, I'm here to help. Just
log in as root and type "init 0". It works for pretty much any problem you
might have with Linux. No, no, no. Thank /you/. -- Mikey Raeder
From: Jeff Higgins on

Jeff Higgins wrote:
>
> Jeff Higgins wrote:
>>
>> Paul Tomblin wrote:
>>>I just insalled the FindBugs plugin in Eclipse, and while it whines about
>>> a bunch of stuff that I don't care about, it's found a few real ones.
>>> But
>>> there is a warning that I don't understand at all. A transient variable
>>> in a serializable class is marked:
>>>
>>> H B Se: The field <variable name> is transient but isn't set by
>>> deserialization.
>>>
>>> What does that mean?
>>>
>>
>> <http://en.wikibooks.org/wiki/Java_Programming/Keywords/transient>
>>
>
> <http://en.wikipedia.org/wiki/Serialization#Java>
>

<http://findbugs.sourceforge.net/bugDescriptions.html>