source: trunk/gcc/libjava/testsuite/libjava.loader/TestParent.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: 523 bytes
Line 
1import java.net.*;
2
3public class TestParent
4{
5 public static void main (String[] args)
6 {
7 URLClassLoader ucl =
8 (URLClassLoader) ClassLoader.getSystemClassLoader();
9 URL urls[] = ucl.getURLs ();
10
11 MyLoader parent = new MyLoader (urls);
12
13 MyLoader t1 = new MyLoader (urls, parent);
14 MyLoader t2 = new MyLoader (urls, parent);
15
16 Class c1, c2;
17
18 try {
19
20 c1 = t1.loadClass ("dummy");
21 c2 = t2.loadClass ("dummy");
22
23 }
24 catch (Exception e) {
25 e.printStackTrace ();
26 }
27 }
28}
29
Note: See TracBrowser for help on using the repository browser.