gcj/323: Gcj doesn't check for static final assigned twice.

apbianco@cygnus.com apbianco@cygnus.com
Thu Aug 17 21:30:00 GMT 2000


>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:


More information about the Java-prs mailing list