source: trunk/gcc/libjava/testsuite/libjava.loader/TestMultiple.java

Last change on this file was 1389, checked in by bird, 21 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 463 bytes
Line 
1import java.net.*;
2
3public class TestMultiple
4{
5 public static void main (String[] args)
6 {
7 URLClassLoader ucl =
8 (URLClassLoader) ClassLoader.getSystemClassLoader();
9 URL urls[] = ucl.getURLs ();
10
11 MyLoader t1 = new MyLoader (urls);
12 MyLoader t2 = new MyLoader (urls);
13
14 Class c1, c2;
15
16 try {
17
18 c1 = t1.loadClass ("dummy");
19 c2 = t2.loadClass ("dummy");
20
21 }
22 catch (Exception e) {
23 e.printStackTrace ();
24 }
25 }
26}
27
28
Note: See TracBrowser for help on using the repository browser.