Java: [gcjh] Fix PR 16474

Andreas Tobler toa@pop.agri.ch
Mon Jul 12 16:47:00 GMT 2004


>-- Original Message --
>Date: Mon, 12 Jul 2004 11:11:02 +0100
>From: Andrew Haley <aph@redhat.com>
>To: Bryce McKinlay <mckinlay@redhat.com>
>Cc: gcc-patches@gcc.gnu.org, java-patches@gcc.gnu.org
>Subject: Java: [gcjh] Fix PR 16474
>
>
>Bryce McKinlay writes:
> > This patch fixes PR 16474. With bytecode emitted by some non-gcj
> > compilers, gcjh could emit a non-static final field as a C++ "const"

> > field with an initializer, which is not legal C++. This patch fixes
gcjh
>
> > to only emit initializers for "static final" fields.
> >
> > OK to commit?
> >
> > Bryce
> >
> >
> > 2004-07-11  Bryce McKinlay  <mckinlay@redhat.com>
> >
> > 	PR java/16474
> > 	gjavah.c (print_field_info): Emit constant only if field is static.
>
>OK.

This is a bit over approved, at least 6 times in my mailbox :)

Andreas




More information about the Java-patches mailing list