defineclass.cc (handleClassBegin): Use Object::class$, not Class::class$, when initializing interface superclass.

* defineclass.cc (handleClassBegin): Use Object::class$, not
	Class::class$, when initializing interface superclass.

From-SVN: r46754
This commit is contained in:
Tom Tromey 2001-11-04 00:45:33 +00:00 committed by Tom Tromey
parent 7ba2b35c70
commit a52706f276
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-11-03 Tom Tromey <tromey@redhat.com>
* defineclass.cc (handleClassBegin): Use Object::class$, not
Class::class$, when initializing interface superclass.
2001-11-02 Hans Boehm <Hans_Boehm@hp.com>
* java/util/natResourceBundle.cc:getClassContext: return

View File

@ -915,12 +915,12 @@ _Jv_ClassReader::handleClassBegin
// interfaces have java.lang.Object as super.
if (access_flags & Modifier::INTERFACE)
{
def->superclass = (jclass)&java::lang::Class::class$;
def->superclass = (jclass)&java::lang::Object::class$;
}
// FIXME: Consider this carefully!
else if (!_Jv_equalUtf8Consts (def->name,
java::lang::Class::class$.name))
java::lang::Object::class$.name))
{
throw_no_class_def_found_error ("loading java.lang.Object");
}