summaryrefslogtreecommitdiff
path: root/libjava/prims.cc
diff options
context:
space:
mode:
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-15 11:58:18 +0000
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-15 11:58:18 +0000
commitb67b9f3c279eead23e060be2b74c4074fb04b42f (patch)
tree0b9fe4dc58f8743700d1abbcfca867013097d4b5 /libjava/prims.cc
parentd25dec036dd2e228c2b07b76dfe717ad9fdda331 (diff)
downloadgcc-b67b9f3c279eead23e060be2b74c4074fb04b42f.tar.gz
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. * java/lang/Class.h (_Jv_InterfaceAssignableFrom): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34562 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/prims.cc')
-rw-r--r--libjava/prims.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/prims.cc b/libjava/prims.cc
index 3a022f0380a..c7c764c604f 100644
--- a/libjava/prims.cc
+++ b/libjava/prims.cc
@@ -543,7 +543,7 @@ public:
interfaces = NULL;
loader = NULL;
interface_count = 0;
- state = JV_STATE_NOTHING;
+ state = JV_STATE_DONE;
thread = NULL;
// Note that we have to set `methods' to NULL.