This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: A Boolean inside a subclass of a subclass of Thread is null when accessed from run().
- From: Per Bothner <per at bothner dot com>
- To: "Kjetil S. Matheussen" <k dot s dot matheussen at notam02 dot no>
- Cc: kawa at sources dot redhat dot com
- Date: Thu, 25 Jan 2007 11:42:41 -0800
- Subject: Re: A Boolean inside a subclass of a subclass of Thread is null when accessed from run().
- References: <Pine.LNX.4.64.0701252020070.9152@ttleush>
Kjetil S. Matheussen wrote:
Your test program works for me.
The weird thing about this is that the variable "isplaying" is a Boolean
initialized to false in the class AThread:
"private Boolean isplaying=true;"
Note you typed Boolean rather than boolean, so it's actually
implemented as:
private Boolean isplaying=Boolean.valueOf(true);
--
--Per Bothner
per@bothner.com http://per.bothner.com/