This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Java: [gcjh] Fix PR 16474
- From: Andrew Haley <aph at redhat dot com>
- To: Bryce McKinlay <mckinlay at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Mon, 12 Jul 2004 11:11:02 +0100
- Subject: Java: [gcjh] Fix PR 16474
- References: <40F18F23.7090605@redhat.com>
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.
Andrew.