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:
parent
7ba2b35c70
commit
a52706f276
@ -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
|
||||
|
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user