Java: [gcjh] Fix PR 16474

Bryce McKinlay mckinlay@redhat.com
Sun Jul 11 19:04:00 GMT 2004


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: gcjh-constant.patch
Type: text/x-patch
Size: 711 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040711/a85f1852/attachment.bin>


More information about the Java-patches mailing list