This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug libgcj/27104] New: definite assingment bug in GCJ
- From: "vnasardinov at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 10 Apr 2006 19:00:53 -0000
- Subject: [Bug libgcj/27104] New: definite assingment bug in GCJ
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
All of the compiler versions are the same as in bug 27101.
Sun's compiler:
| $ javac UnwelcomeGuest.java
| UnwelcomeGuest.java:9: variable USER_ID might already have been assigned
| USER_ID = GUEST_USER_ID;
| ^
| 1 error
The Eclipse compiler:
| $ ecj UnwelcomeGuest.java
| ----------
| 1. ERROR in UnwelcomeGuest.java
| (at line 9)
| USER_ID = GUEST_USER_ID;
| ^^^^^^^
| The final field USER_ID may already have been assigned
| ----------
| 1 problem (1 error)
GCJ:
| $ gcj -C UnwelcomeGuest.java
| $ echo $?
| 0
Will attach the test case momentarily.
--
Summary: definite assingment bug in GCJ
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcj
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vnasardinov at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27104