gcj/241: string constants not handled properly
Tom Tromey
tromey@cygnus.com
Tue May 23 17:30:00 GMT 2000
>Number: 241
>Category: gcj
>Synopsis: string constants not handled properly
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue May 23 17:30:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Tom Tromey
>Release: unknown-1.0
>Organization:
>Environment:
>Description:
According to section 12.4.1 of the JVM, a class or
interface shouldn't be initialized if a field is
passively referenced; this includes references to
"static final" (or equiv.) fields whose value is a
compile-time constant expression. The latter is
defined (section 15.27) to include Strings.
We don't seem to handle this at all.
I checked in the "stringconst.java" test which demonstrates
the bug. However, that is just one instance; I suspect
there are others.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Java-prs
mailing list