diff options
author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-22 00:21:52 +0000 |
---|---|---|
committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-09-22 00:21:52 +0000 |
commit | c0790887e53a275fa58f4fbf438d81dc73a6130c (patch) | |
tree | 86cb6a21c742a1049a53b7833b9e6c6910a1e4b6 /libjava | |
parent | c3efdcbd44ce8e0b8275294763d9299b91692881 (diff) | |
download | ppe42-gcc-c0790887e53a275fa58f4fbf438d81dc73a6130c.tar.gz ppe42-gcc-c0790887e53a275fa58f4fbf438d81dc73a6130c.zip |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104516 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r-- | libjava/ChangeLog | 7 | ||||
-rw-r--r-- | libjava/gnu/gcj/runtime/BootClassLoader.java | 3 | ||||
-rw-r--r-- | libjava/gnu/gcj/runtime/HelperClassLoader.java | 5 |
3 files changed, 15 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog index e9e6f89aff2..38346865b05 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -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. diff --git a/libjava/gnu/gcj/runtime/BootClassLoader.java b/libjava/gnu/gcj/runtime/BootClassLoader.java index d2091720a4f..84952359aab 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 9b81b522ffa..3b48da17c5c 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 |