natFirstThread.cc (run): Initialize class before calling main.

* gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
	calling main.

From-SVN: r33377
This commit is contained in:
Jeff Sturm 2000-04-24 15:07:16 +00:00 committed by Tom Tromey
parent 5fb7c24702
commit 448415dcae
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2000-04-24 Jeff Sturm <jsturm@sigma6.com>
* gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
calling main.
2000-04-22 Anthony Green <green@cygnus.com>
* include/jvm.h (__builtin_expect): Define as unused for now.

View File

@ -74,10 +74,9 @@ gnu::gcj::runtime::FirstThread::run (void)
}
if (klass == NULL)
{
klass = java::lang::Class::forName (klass_name);
if (klass != NULL) _Jv_InitClass (klass);
}
klass = java::lang::Class::forName (klass_name);
if (klass != NULL)
_Jv_InitClass (klass);
_Jv_Method *meth = _Jv_GetMethodLocal (klass, main_name, main_signature);