diff options
author | Jeff Sturm <jsturm@sigma6.com> | 2000-04-24 15:07:16 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2000-04-24 15:07:16 +0000 |
commit | 448415dcaeedfff68bbb586d3b3e0f08490cd4a3 (patch) | |
tree | decc96caa135b6b7fcf2d166b48fbdf599b76af6 /libjava/gnu | |
parent | 5fb7c24702c5bbd78fc7e3a09501b0c16440a334 (diff) | |
download | gcc-448415dcaeedfff68bbb586d3b3e0f08490cd4a3.zip gcc-448415dcaeedfff68bbb586d3b3e0f08490cd4a3.tar.gz gcc-448415dcaeedfff68bbb586d3b3e0f08490cd4a3.tar.bz2 |
natFirstThread.cc (run): Initialize class before calling main.
* gnu/gcj/runtime/natFirstThread.cc (run): Initialize class before
calling main.
From-SVN: r33377
Diffstat (limited to 'libjava/gnu')
-rw-r--r-- | libjava/gnu/gcj/runtime/natFirstThread.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libjava/gnu/gcj/runtime/natFirstThread.cc b/libjava/gnu/gcj/runtime/natFirstThread.cc index c498ff8..3b36d39 100644 --- a/libjava/gnu/gcj/runtime/natFirstThread.cc +++ b/libjava/gnu/gcj/runtime/natFirstThread.cc @@ -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); |