This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
java/1259: string constants not handled properly
- To: java-gnats at sourceware dot cygnus dot com
- Subject: java/1259: string constants not handled properly
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 24 May 2000 00:29:20 -0000
- Reply-To: Tom Tromey <tromey at cygnus dot com>
>Number: 1259
>Category: java
>Synopsis: string constants not handled properly
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: apbianco
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 20 12:18:23 PST 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:
Formerly PR gcj/241
>Unformatted: