On Sunday 23 February 2003 01:48, Raymond DeCampo wrote: > /home/rdecampo/src/jakarta/log4j/jakarta-log4j-1.2.8/src/java/org/apache/lo >g4j/chainsaw/LoggingReceiver.java:76: Blank final variable 'mModel' may not > have been initialized. It must be assigned a value in an initializer, or in > every constructor. > [javac] private final MyTableModel mModel;
> From what I can see, this is a compiler bug. However, Sun doesn't seem > to be accepting bugs on JDK 1.2.2 any longer. Does anybody else notice > this on any other platform? > > The fix is to make the variables non-final. That is somewhat > unsatisfying to me programmtically but should we change it for > practicality? Hmmm. Could it be that the old compiler always created a "default constructor", which is the "bug". Something in the back of my head says that it was like that to "force" JavaBeans compliance or was it to handle Serialization? Try adding; private LoggingReceiver() { mModel = null; mSvrSock = null; } Another thing I can think of, is that it was sensitive to the "order" in the constructor, as setDaemon() is called prior to the assignment. Try change the order. Niclas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]