This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/1259] string constants not handled properly


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]