diff options
author | Anthony Green <green@redhat.com> | 2002-11-04 01:31:12 +0000 |
---|---|---|
committer | Anthony Green <green@gcc.gnu.org> | 2002-11-04 01:31:12 +0000 |
commit | 55376e412851fb852f4b5c72d1da5e12aec0a459 (patch) | |
tree | 50932c23d528ff479cc42e794aaeb5732fb4f309 /libjava/testsuite/libjava.loader/TestMultiple.java | |
parent | c9fe6f9f39ac5003dd6642d3d708c6818e99223e (diff) | |
download | gcc-55376e412851fb852f4b5c72d1da5e12aec0a459.zip gcc-55376e412851fb852f4b5c72d1da5e12aec0a459.tar.gz gcc-55376e412851fb852f4b5c72d1da5e12aec0a459.tar.bz2 |
New files.
From-SVN: r58778
Diffstat (limited to 'libjava/testsuite/libjava.loader/TestMultiple.java')
-rw-r--r-- | libjava/testsuite/libjava.loader/TestMultiple.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.loader/TestMultiple.java b/libjava/testsuite/libjava.loader/TestMultiple.java new file mode 100644 index 0000000..1a56fc4 --- /dev/null +++ b/libjava/testsuite/libjava.loader/TestMultiple.java @@ -0,0 +1,28 @@ +import java.net.*; + +public class TestMultiple +{ + public static void main (String[] args) + { + URLClassLoader ucl = + (URLClassLoader) ClassLoader.getSystemClassLoader(); + URL urls[] = ucl.getURLs (); + + MyLoader t1 = new MyLoader (urls); + MyLoader t2 = new MyLoader (urls); + + Class c1, c2; + + try { + + c1 = t1.loadClass ("dummy"); + c2 = t2.loadClass ("dummy"); + + } + catch (Exception e) { + e.printStackTrace (); + } + } +} + + |