From 0c9976393b0be03a81c5587359390f97c75865f8 Mon Sep 17 00:00:00 2001 From: Bryce McKinlay Date: Thu, 22 Sep 2005 00:21:52 +0000 Subject: BootClassLoader.java (BootClassLoader): Pass `null' parent ClassLoader to parent constructor. 2005-09-21 Bryce McKinlay * gnu/gcj/runtime/BootClassLoader.java (BootClassLoader): Pass `null' parent ClassLoader to parent constructor. * gnu/gcj/runtime/HelperClassLoader.java (HelperClassLoader): New constructor. From-SVN: r104516 --- libjava/ChangeLog | 7 +++++++ libjava/gnu/gcj/runtime/BootClassLoader.java | 3 +++ libjava/gnu/gcj/runtime/HelperClassLoader.java | 5 +++++ 3 files changed, 15 insertions(+) (limited to 'libjava') diff --git a/libjava/ChangeLog b/libjava/ChangeLog index e9e6f89..3834686 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,10 @@ +2005-09-21 Bryce McKinlay + + * 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 * testsuite/libjava.jacks/jacks.xfail: Updated for PR java/23891. diff --git a/libjava/gnu/gcj/runtime/BootClassLoader.java b/libjava/gnu/gcj/runtime/BootClassLoader.java index d209172..8495235 100644 --- a/libjava/gnu/gcj/runtime/BootClassLoader.java +++ b/libjava/gnu/gcj/runtime/BootClassLoader.java @@ -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"); diff --git a/libjava/gnu/gcj/runtime/HelperClassLoader.java b/libjava/gnu/gcj/runtime/HelperClassLoader.java index 9b81b52..3b48da1 100644 --- a/libjava/gnu/gcj/runtime/HelperClassLoader.java +++ b/libjava/gnu/gcj/runtime/HelperClassLoader.java @@ -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 -- cgit v1.1