+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.
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();