All,

I have noticed that log4j 1.2.8 does not compile in my environment when I use JDK 1.2.2:

[EMAIL PROTECTED] jakarta-log4j-1.2.8]$ uname -a
Linux stingray 2.4.18-24.8.0 #1 Fri Jan 31 07:28:55 EST 2003 i686 athlon i386 GNU/Linux
[EMAIL PROTECTED] jakarta-log4j-1.2.8]$ java -version
java version "1.2.2"
Classic VM (build JDK-1.2.2_014, green threads, nojit)
[EMAIL PROTECTED] jakarta-log4j-1.2.8]$ echo $JAVA_HOME
/usr/local/vers/jdk1.2.2
[EMAIL PROTECTED] jakarta-log4j-1.2.8]$ ant build
Buildfile: build.xml


init:

build.core:
[javac] Compiling 1 source file to /home/rdecampo/src/jakarta/log4j/jakarta-log4j-1.2.8/dist/classes
[javac] /home/rdecampo/src/jakarta/log4j/jakarta-log4j-1.2.8/src/java/org/apache/log4j/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;
[javac] ^
[javac] /home/rdecampo/src/jakarta/log4j/jakarta-log4j-1.2.8/src/java/org/apache/log4j/chainsaw/LoggingReceiver.java:79: Blank final variable 'mSvrSock' may not have been initialized. It must be assigned a value in an initializer, or in every constructor.
[javac] private final ServerSocket mSvrSock;
[javac] ^
[javac] 2 errors


BUILD FAILED
file:/home/rdecampo/src/jakarta/log4j/jakarta-log4j-1.2.8/build.xml:188: Compile failed; see the compiler error output for details.


Total time: 5 seconds

=================================================

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?

Thanks,
Ray





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to