diff options
author | Tom Tromey <tromey@redhat.com> | 2002-11-26 06:51:14 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-11-26 06:51:14 +0000 |
commit | b0fbe966b10e08de78928397f8a08e20df7a60fd (patch) | |
tree | 3523ae56e241e44fb26f03de32973be665940818 /libjava/verify.cc | |
parent | 32f0ffb38040ceae60ee324077080d932cee1529 (diff) | |
download | gcc-b0fbe966b10e08de78928397f8a08e20df7a60fd.tar.gz |
verify.cc (type::compatible): Check initialization status first.
* verify.cc (type::compatible): Check initialization status
first.
* interpret.cc (run) [insn_invokespecial, invokespecial_resolved]:
Don't use NULLCHECK.
From-SVN: r59494
Diffstat (limited to 'libjava/verify.cc')
-rw-r--r-- | libjava/verify.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libjava/verify.cc b/libjava/verify.cc index 29f0f321a7f..5917ce09c77 100644 --- a/libjava/verify.cc +++ b/libjava/verify.cc @@ -458,8 +458,12 @@ private: if (key < reference_type || k.key < reference_type) return key == k.key; + // An initialized type and an uninitialized type are not + // compatible. + if (isinitialized () != k.isinitialized ()) + return false; + // The `null' type is convertible to any reference type. - // FIXME: is this correct for THIS? if (key == null_type || k.key == null_type) return true; @@ -469,11 +473,6 @@ private: && data.klass == &java::lang::Object::class$) return true; - // An initialized type and an uninitialized type are not - // compatible. - if (isinitialized () != k.isinitialized ()) - return false; - // Two uninitialized objects are compatible if either: // * The PCs are identical, or // * One PC is UNINIT. |