2 * a test to ensure we do upcalls to static initializers properly.
4 * @author Godmar Back <gback@cs.utah.edu>
10 } catch (Exception e) {
11 System.out.println(e);
16 class Sub extends Base {
19 public class ProcessClassLockTest
21 public static void main(String av[]) throws Exception {
22 // a watchdog thread that kills us off after 2.5 sec
27 System.out.println("sorry, you timed out");
29 } catch (Exception e) {
30 System.out.println(e);
35 // a thread that will load Sub and Base
40 } catch (Throwable t) {
41 System.out.println(t);
49 /* this thread should be unaffected by the fact that thread 2
50 * sleeps in the static initializer of Base
55 Class.forName("this_class_does_not_exist");
56 } catch (Throwable t) {
57 System.out.println(t);
66 java.lang.ClassNotFoundException: this_class_does_not_exist