Java: [gcjh] Fix PR 16474

Andrew Haley aph@redhat.com
Mon Jul 12 16:32:00 GMT 2004


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.



More information about the Java-patches mailing list