[multiple changes]
2009-03-11 Andrew Haley <aph@redhat.com> * java/lang/natClassLoader.cc (_Jv_RegisterClassHookDefault): Clear INTERPRETED access modifier. 2009-03-11 Tom Tromey <tromey@redhat.com> * link.cc (_Jv_Linker::find_field): Pass the field_type to _Jv_CheckOrCreateLoadingConstraint, not the class that is requesting the field. From-SVN: r144818
This commit is contained in:
parent
bbb52802a1
commit
2e95a6c358
3 changed files with 21 additions and 1 deletions
|
@ -380,6 +380,15 @@ _Jv_RegisterClassHookDefault (jclass klass)
|
|||
if (! klass->engine)
|
||||
klass->engine = &_Jv_soleCompiledEngine;
|
||||
|
||||
/* FIXME: Way back before the dawn of time, we overloaded the
|
||||
SYNTHETIC class access modifier to mean INTERPRETED. This was a
|
||||
Bad Thing, but it didn't matter then because classes were never
|
||||
marked synthetic. However, it is possible to redeem the
|
||||
situation: _Jv_RegisterClassHookDefault is only called from
|
||||
compiled classes, so we clear the INTERPRETED flag. This is a
|
||||
kludge! */
|
||||
klass->accflags &= ~java::lang::reflect::Modifier::INTERPRETED;
|
||||
|
||||
if (system_class_list != SYSTEM_LOADER_INITIALIZED)
|
||||
{
|
||||
unsigned long abi = (unsigned long) klass->next_or_version;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue