This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gcjx] Patch: FYI: fix for static accessors


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]