This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gcjx] Patch: FYI: fix for static accessors
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 11 Jul 2005 10:40:17 -0600
- Subject: [gcjx] Patch: FYI: fix for static accessors
- Reply-to: tromey at redhat dot com
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)