diff options
author | Tom Tromey <tromey@redhat.com> | 2002-11-26 07:15:53 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-11-26 07:15:53 +0000 |
commit | cbad89c4e2c9f6fdb510bf9f2878ffcd31c91e2f (patch) | |
tree | e130221187053907de550692a4f334e24be81eb3 /libjava | |
parent | d2dff06bdb1d2f9d4cc98cae9ce9df1cbed726c4 (diff) | |
download | gcc-cbad89c4e2c9f6fdb510bf9f2878ffcd31c91e2f.zip gcc-cbad89c4e2c9f6fdb510bf9f2878ffcd31c91e2f.tar.gz gcc-cbad89c4e2c9f6fdb510bf9f2878ffcd31c91e2f.tar.bz2 |
* verify.cc (type::compatible): Backed out broken change.
From-SVN: r59496
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 2 | ||||
-rw-r--r-- | libjava/verify.cc | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index df1c794..be17304 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,5 +1,7 @@ 2002-11-25 Tom Tromey <tromey@redhat.com> + * verify.cc (type::compatible): Backed out broken change. + * verify.cc (type::compatible): Check initialization status first. * interpret.cc (run) [insn_invokespecial, invokespecial_resolved]: diff --git a/libjava/verify.cc b/libjava/verify.cc index 5917ce09..001543f 100644 --- a/libjava/verify.cc +++ b/libjava/verify.cc @@ -458,11 +458,6 @@ 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. if (key == null_type || k.key == null_type) return true; @@ -473,6 +468,11 @@ 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. |