This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/1259] string constants not handled properly
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jun 2005 21:12:26 -0000
- Subject: [Bug java/1259] string constants not handled properly
- References: <20001220121823.1259.tromey@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tromey at gcc dot gnu dot org 2005-06-01 21:12 -------
One example of a failure is the test case in PR 21722.
In this PR we generate this bytecode in A.class:
0: ldc #9=<String "foo">
2: astore_1
3: getstatic #15=<Field b.B.FOO java.lang.String>
6: aload_1
7: invokevirtual #21=<Method java.lang.String.equals (java.lang.Object)boolean>
However, as B.FOO is a compile-time constant, we should not have
a 'getstatic' here.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1259