This is the mail archive of the
java-prs@sources.redhat.com
mailing list for the Java project.
gcj/323: Gcj doesn't check for static final assigned twice.
- To: java-gnats at sourceware dot cygnus dot com
- Subject: gcj/323: Gcj doesn't check for static final assigned twice.
- From: apbianco at cygnus dot com
- Date: 18 Aug 2000 04:29:02 -0000
- Cc: tromey at cygnus dot com
- Reply-To: apbianco at cygnus dot com
- Resent-Cc: java-prs at sourceware dot cygnus dot com, green at cygnus dot com, tromey at cygnus dot com
- Resent-Reply-To: java-gnats@sourceware.cygnus.com, apbianco@cygnus.com
>Number: 323
>Category: gcj
>Synopsis: Gcj doesn't check for static final assigned twice.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Aug 17 21:30:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Alex Petit-Bianco
>Release: unknown-1.0
>Organization:
>Environment:
RHL 6.2, x86
>Description:
Tom found this bug. Consider the following code:
class S {
private static final int x;
static {
x = 34;
x = 344;
}
}
gcj should issue an error on the second assignment of `x.'
>How-To-Repeat:
Compile the source code.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: