2013-12-18 Janus Weil <janus@gcc.gnu.org>
[official-gcc.git] / libjava / testsuite / libjava.loader / TestMultiple.java
blob1a56fc4878c6ccceee458b76dad0b2d4a90fb8c9
1 import java.net.*;
3 public class TestMultiple
5 public static void main (String[] args)
7 URLClassLoader ucl =
8 (URLClassLoader) ClassLoader.getSystemClassLoader();
9 URL urls[] = ucl.getURLs ();
11 MyLoader t1 = new MyLoader (urls);
12 MyLoader t2 = new MyLoader (urls);
14 Class c1, c2;
16 try {
18 c1 = t1.loadClass ("dummy");
19 c2 = t2.loadClass ("dummy");
22 catch (Exception e) {
23 e.printStackTrace ();