This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: RFC: fix PR 28892
- From: Tom Tromey <tromey at redhat dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>, Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Date: 30 Aug 2006 16:50:42 -0600
- Subject: Re: RFC: fix PR 28892
- References: <m3sljfqjai.fsf@localhost.localdomain> <17653.51566.669342.210916@zebedee.pink>
- Reply-to: tromey at redhat dot com
>>>>> "Andrew" == Andrew Haley <aph@redhat.com> writes:
Andrew> I'd have made it WONTFIX. Sadly, however, there seems to be no rule
Andrew> in the specification that forbids final fields being rewritten in
Andrew> methods other than clinit.
In this case I don't think the fields are being rewritten -- they are
simply being initialized by a different function.
Andrew> This makes some optimizations harder. I think we need a flag to tell
Andrew> gcj that what we are compiling may not be Java code. Then we can do
Andrew> better optimizations when we know that it is.
Unfortunately I think final fields may be changed via reflection.
Tom