set default thread context classloader to app loader, not boot loader

This commit is contained in:
Joel Dice 2011-03-26 19:01:48 -06:00
parent 16a8777fd2
commit 89947f4655

View File

@ -305,7 +305,7 @@ class MyClasspath : public Classpath {
setObjectClass(t, thread, type(t, Machine::ThreadType));
threadPriority(t, thread) = NormalPriority;
threadGroup(t, thread) = group;
threadContextClassLoader(t, thread) = root(t, Machine::BootLoader);
threadContextClassLoader(t, thread) = root(t, Machine::AppLoader);
PROTECT(t, thread);