This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: PR java/19285: Interfaces not initialized by static field access
- From: Tom Tromey <tromey at redhat dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: java-patches at gcc dot gnu dot org
- Date: 29 Apr 2005 13:59:47 -0600
- Subject: Re: PR java/19285: Interfaces not initialized by static field access
- References: <17007.57841.608087.907623@cuddles.cambridge.redhat.com>
- Reply-to: tromey at redhat dot com
Andrew included this in his original patch submission but forgot to
check it in. I'm checking it in now to fix the build.
Tom
Index: ChangeLog
from Andrew Haley <aph@redhat.com>
* java/lang/Class.h (_Jv_ResolvePoolEntry): Declare as friend.
Index: java/lang/Class.h
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/lang/Class.h,v
retrieving revision 1.81
diff -u -r1.81 Class.h
--- java/lang/Class.h 17 Mar 2005 00:18:50 -0000 1.81
+++ java/lang/Class.h 29 Apr 2005 20:00:38 -0000
@@ -31,6 +31,7 @@
// This must be predefined with "C" linkage.
extern "C" void *_Jv_LookupInterfaceMethodIdx (jclass klass, jclass iface,
int meth_idx);
+extern "C" void *_Jv_ResolvePoolEntry (jclass this_class, jint index);
// These are the possible values for the `state' field of the class
// structure. Note that ordering is important here. Whenever the
@@ -491,6 +492,8 @@
friend void ::_Jv_sharedlib_register_hook (jclass klass);
+ friend void *::_Jv_ResolvePoolEntry (jclass this_class, jint index);
+
// Chain for class pool. This also doubles as the ABI version
// number. It is only used for this purpose at class registration
// time, and only for precompiled classes.