This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/2424] gjc thinks a final variable is reassigned when it is not
- From: "mwp1 at cornell dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Dec 2003 01:57:06 -0000
- Subject: [Bug java/2424] gjc thinks a final variable is reassigned when it is not
- References: <20010329193604.2424.sdlee@csis.hku.hk>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mwp1 at cornell dot edu 2003-12-11 01:56 -------
This is happening for me with the same test program.
bash$ gcj -dumpmachine
i386-linux
bash$ gcj -dumpversion
3.0.4
bash$ uname -a
Linux europa 2.4.18-1-686 #1 Fri Jun 6 22:41:17 EST 2003 i686 unknown
bash$ gcj -v -C A.java
Reading specs from /usr/lib/gcc-lib/i386-linux/3.0.4/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr
--infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --
with-system-zlib --enable-long-long --enable-nls --without-included-gettext --disable-
checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --
enable-objc-gc i386-linux
Thread model: posix
gcc version 3.0.4
/usr/lib/gcc-lib/i386-linux/3.0.4/jc1 A.java -quiet -dumpbase A.java -g1 -version -fsyntax-only
-femit-class-files -o /dev/null
GNU Java version 3.0.4 (i386-linux)
compiled by GNU C version 3.0.4.
A.java: In class `A':
A.java: In method `(int)':
A.java:13: Can't assign a value to the final variable `b'.
b = true;
^
1 error
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2424