summaryrefslogtreecommitdiff
path: root/libjava/prims.cc
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-02 15:34:28 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-02 15:34:28 +0000
commitee53d22ae98d509d005809a877536ffa3f9b4dd2 (patch)
tree0d661c151d898fb68bdb3b3911e26cc2223aaf99 /libjava/prims.cc
parentc9eadc1c09fd0eafb4d4fee73aa26470646063db (diff)
downloadgcc-ee53d22ae98d509d005809a877536ffa3f9b4dd2.tar.gz
* java/lang/VMClassLoader.java (loadClass): Now native.
* java/lang/natClassLoader.cc (loadClass): Implement. * prims.cc (_Jv_RunMain): Initialize ClassLoader. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72038 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/prims.cc')
-rw-r--r--libjava/prims.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libjava/prims.cc b/libjava/prims.cc
index f15c24b7962..3fe65f96722 100644
--- a/libjava/prims.cc
+++ b/libjava/prims.cc
@@ -983,6 +983,12 @@ _Jv_RunMain (jclass klass, const char *name, int argc, const char **argv,
arg_vec = JvConvertArgv (argc - 1, argv + 1);
#endif
+ // We have to initialize this fairly early, to avoid circular
+ // class initialization. In particular we want to start the
+ // initialization of ClassLoader before we start the
+ // initialization of VMClassLoader.
+ _Jv_InitClass (&java::lang::ClassLoader::class$);
+
using namespace gnu::gcj::runtime;
if (klass)
main_thread = new FirstThread (klass, arg_vec);