BootClassLoader.java (BootClassLoader): Pass `null' parent ClassLoader to parent constructor.

2005-09-21  Bryce McKinlay  <mckinlay@redhat.com>

        * gnu/gcj/runtime/BootClassLoader.java (BootClassLoader): Pass
        `null' parent ClassLoader to parent constructor.
        * gnu/gcj/runtime/HelperClassLoader.java (HelperClassLoader): New
        constructor.

From-SVN: r104516
This commit is contained in:
Bryce McKinlay 2005-09-22 00:21:52 +00:00 committed by Bryce McKinlay
parent d2f48ccf68
commit 0c9976393b
3 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2005-09-21 Bryce McKinlay <mckinlay@redhat.com>
* gnu/gcj/runtime/BootClassLoader.java (BootClassLoader): Pass
`null' parent ClassLoader to parent constructor.
* gnu/gcj/runtime/HelperClassLoader.java (HelperClassLoader): New
constructor.
2005-09-21 Ranjit Mathew <rmathew@gcc.gnu.org>
* testsuite/libjava.jacks/jacks.xfail: Updated for PR java/23891.

View File

@ -23,6 +23,9 @@ public final class BootClassLoader extends HelperClassLoader
{
BootClassLoader(String libdir)
{
// The BootClassLoader is the top of the delegation chain. It does not
// have a parent.
super((ClassLoader) null);
addDirectoriesFromProperty("java.endorsed.dirs");
addDirectoriesFromProperty("gnu.gcj.runtime.endorsed.dirs");

View File

@ -25,6 +25,11 @@ class HelperClassLoader extends URLClassLoader
{
super(new URL[0]);
}
HelperClassLoader(ClassLoader parent)
{
super(new URL[0], parent);
}
/**
* This is a helper method that adds all the jar and zip files from