[gcjx] Patch: FYI: fix for static accessors
Tom Tromey
tromey@redhat.com
Mon Jul 11 16:43:00 GMT 2005
I'm checking this in on the gcjx branch.
Oops, I forgot to merge this fix into the big static accessor patch.
This fixes a bug involving accesses to private static fields.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* bytecode/generate.cc (visit_field_ref): Correctly call
handle_invocation.
Index: bytecode/generate.cc
===================================================================
RCS file: /cvs/gcc/gcc/gcjx/bytecode/Attic/generate.cc,v
retrieving revision 1.1.2.14
diff -u -r1.1.2.14 generate.cc
--- bytecode/generate.cc 11 Jul 2005 16:41:48 -0000 1.1.2.14
+++ bytecode/generate.cc 11 Jul 2005 16:42:31 -0000
@@ -2700,7 +2700,7 @@
{
std::list<ref_expression> nullargs;
handle_invocation (op_invokestatic, ref->get_qualifying_class (),
- tm, nullargs, false, true);
+ tm, nullargs, false, ! field->static_p ());
}
}
else if (expr_target == LEFT_HAND_SIDE)
More information about the Java-patches
mailing list