Layout interfaces during preparation, not initialization.

* java/lang/natClass.cc (initializeClass): Move
	_Jv_LayoutInterfaceMethods call...
	* java/lang/natClassLoader.cc (_Jv_PrepareCompiledClass): to here.

From-SVN: r82101
This commit is contained in:
Bryce McKinlay 2004-05-21 16:08:50 +00:00 committed by Bryce McKinlay
parent e54d021400
commit 17abdabcf3
3 changed files with 10 additions and 4 deletions

View file

@ -790,9 +790,6 @@ java::lang::Class::initializeClass (void)
}
}
if (isInterface ())
_Jv_LayoutInterfaceMethods (this);
_Jv_PrepareConstantTimeTables (this);
if (vtable == NULL)

View file

@ -170,6 +170,9 @@ _Jv_PrepareCompiledClass (jclass klass)
}
#endif /* INTERPRETER */
if (klass->isInterface ())
_Jv_LayoutInterfaceMethods (klass);
klass->notifyAll ();
_Jv_PushClass (klass);