* configure.ac: Use AC_PROG_FC, FC and FCFLAGS instead of
[official-gcc.git] / libjava / testsuite / libjava.loader / TestLeak.java
blob9d467f2fdc9ca2c52efa81ac39b22b0b2a658fb5
1 import java.net.*;
2 import java.lang.reflect.*;
4 public class TestLeak
6 class MyLoader extends URLClassLoader
8 public MyLoader (URL urls[])
10 super (urls);
14 public static void main (String[] args)
16 URLClassLoader ucl =
17 (URLClassLoader) ClassLoader.getSystemClassLoader();
18 URL urls[] = ucl.getURLs ();
19 Class ifaces[] = new Class[1];
20 ifaces[0] = java.lang.Comparable.class;
22 try {
23 for (int i = 0; i < 100; i++)
25 Proxy.getProxyClass (new MyLoader (urls), ifaces);
27 } catch (Exception e) {
28 e.printStackTrace ();