aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryce McKinlay <bryce@albatross.co.nz>2000-06-15 12:04:50 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2000-06-15 13:04:50 +0100
commit1bf8972740dc40b4811f0be0e7ae2ff773964cdc (patch)
tree3d1ef0bea623353a581409581cd3ab3028d434fa
parentd655f87d6f2f59e00401a483f7f824dea25d1bd4 (diff)
downloadgcc-1bf8972740dc40b4811f0be0e7ae2ff773964cdc.zip
gcc-1bf8972740dc40b4811f0be0e7ae2ff773964cdc.tar.gz
gcc-1bf8972740dc40b4811f0be0e7ae2ff773964cdc.tar.bz2
2000-06-15 Bryce McKinlay <bryce@albatross.co.nz>
Fix for PR java.lang/258: * prims.cc (_Jv_PrimClass): Set state of primitive class to JV_STATE_DONE, to prevent accidental initialization. * java/lang/natClass.cc (_Jv_IsAssignableFrom): Call _Jv_InterfaceAssignableFrom if target is an interface and source is an interface or an abstract class. Remove redundant initializeClass calls. Remove duplicate if_idt test. (_Jv_InterfaceAssignableFrom): New function. * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype. From-SVN: r34563
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/java/lang/Class.h1
2 files changed, 4 insertions, 2 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index db06390..4ab49c8 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -6,8 +6,9 @@
* java/lang/natClass.cc (_Jv_IsAssignableFrom): Call
_Jv_InterfaceAssignableFrom if target is an interface and source is an
interface or an abstract class. Remove redundant initializeClass calls.
- Remove duplicate if_idt test.
- * java/lang/Class.h (_Jv_InterfaceAssignableFrom): New function.
+ Remove duplicate if_idt test.
+ (_Jv_InterfaceAssignableFrom): New function.
+ * java/lang/Class.h (_Jv_InterfaceAssignableFrom): Prototype.
2000-05-31 Tom Tromey <tromey@cygnus.com>
diff --git a/libjava/java/lang/Class.h b/libjava/java/lang/Class.h
index 9ea3759..0f60274 100644
--- a/libjava/java/lang/Class.h
+++ b/libjava/java/lang/Class.h
@@ -200,6 +200,7 @@ private:
friend _Jv_Method *_Jv_GetMethodLocal (jclass klass, _Jv_Utf8Const *name,
_Jv_Utf8Const *signature);
friend jboolean _Jv_IsAssignableFrom(jclass, jclass);
+ friend jboolean _Jv_InterfaceAssignableFrom (jclass, jclass);
friend void *_Jv_LookupInterfaceMethodIdx (jclass klass, jclass iface,
int method_idx);