Commit dd4e1500 by Bryce McKinlay Committed by Bryce McKinlay

re PR java/16474 (gcjh: Illegal C++ produced for some non-gcj bytecode)

2004-07-12  Bryce McKinlay  <mckinlay@redhat.com>

        PR java/16474
        gjavah.c (print_field_info): Emit constant only if field is static.

From-SVN: r84570
parent fdbda73f
2004-07-12 Bryce McKinlay <mckinlay@redhat.com>
PR java/16474
gjavah.c (print_field_info): Emit constant only if field is static.
2004-07-11 Roger Sayle <roger@eyesopen.com> 2004-07-11 Roger Sayle <roger@eyesopen.com>
* expr.c (java_truthvalue_conversion, flush_quick_stack, * expr.c (java_truthvalue_conversion, flush_quick_stack,
......
...@@ -719,11 +719,10 @@ print_field_info (FILE *stream, JCF* jcf, int name_index, int sig_index, ...@@ -719,11 +719,10 @@ print_field_info (FILE *stream, JCF* jcf, int name_index, int sig_index,
fputs (" ", out); fputs (" ", out);
if ((flags & ACC_STATIC)) if ((flags & ACC_STATIC))
fputs ("static ", out);
if ((flags & ACC_FINAL))
{ {
if (current_field_value > 0) fputs ("static ", out);
if ((flags & ACC_FINAL) && current_field_value > 0)
{ {
char buffer[25]; char buffer[25];
int done = 1; int done = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment