mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-04 23:01:19 +08:00
* java/lang/natClass.cc (initializeClass): Link class.
From-SVN: r98540
This commit is contained in:
parent
88ab7d19e4
commit
36a0d3d264
@ -1,3 +1,7 @@
|
||||
2005-04-21 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* java/lang/natClass.cc (initializeClass): Link class.
|
||||
|
||||
2005-04-21 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* java/lang/AssertionError.java: Typo fix.
|
||||
|
@ -703,7 +703,20 @@ java::lang::Class::initializeClass (void)
|
||||
JvSynchronize sync (this);
|
||||
|
||||
if (state < JV_STATE_LINKED)
|
||||
java::lang::VMClassLoader::resolveClass (this);
|
||||
{
|
||||
try
|
||||
{
|
||||
_Jv_Linker::wait_for_state(this, JV_STATE_LINKED);
|
||||
}
|
||||
catch (java::lang::Throwable *x)
|
||||
{
|
||||
// Turn into a NoClassDefFoundError.
|
||||
java::lang::NoClassDefFoundError *result
|
||||
= new java::lang::NoClassDefFoundError(getName());
|
||||
result->initCause(x);
|
||||
throw result;
|
||||
}
|
||||
}
|
||||
|
||||
// Step 2.
|
||||
java::lang::Thread *self = java::lang::Thread::currentThread();
|
||||
|
Loading…
x
Reference in New Issue
Block a user