Dead
[official-gcc.git] / gomp-20050608-branch / libjava / classpath / testsuite / java.lang / NewInstanceTest.java
blob845bb42cc69476d81ea3a5295535bd8bc32dced0
1 public class NewInstanceTest
3 public NewInstanceTest() {
4 static_field = 1;
7 public static void main(String args[]) {
8 try {
9 Class cls = Class.forName("NewInstanceTest");
10 Object instance = cls.newInstance();
12 if (static_field == 1)
13 System.out.println("PASSED: static_field = " + static_field);
14 else
15 System.out.println("FAILED: static_field = " + static_field);
17 catch (Exception e)
19 System.out.println("FAILED: exception " + e.toString());
23 public static int static_field;