Initialize the context class loader to the app class loader

Previously, we initialized it to the boot class loader, but that is
inconsistent with Java; if compiling against OpenJDK's class library,
the context class loader is therefore initialized to the app class
loader, too.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin 2013-10-29 16:36:50 -05:00
parent 5827c450c9
commit efb3ef9b51

View File

@ -53,7 +53,7 @@ class MyClasspath : public Classpath {
return vm::makeThread
(t, 0, 0, 0, 0, NewState, NormalPriority, 0, 0, 0,
root(t, Machine::BootLoader), 0, 0, group, 0);
root(t, Machine::AppLoader), 0, 0, group, 0);
}
virtual object