fix make check for out-of-srcdir builds.
[cacao.git] / tests / forname.java
index 1e2f37de294e604ca4bdbdfd4090e5f555661361..95b4c8f6a8e6b65c35c73e96b88d6993a2e958d7 100644 (file)
@@ -1,13 +1,15 @@
 class forname {
-    {
-        System.out.println("<clinit>");
+    public static void main(String[] argv) {
+        new forname_init();
     }
+}
 
-    forname() {
-        System.out.println("<init>");
+class forname_init {
+    static {
+        System.out.println("<clinit>");
     }
 
-    public static void main(String[] argv) throws Throwable {
-        Class.forName("forname").newInstance();
+    forname_init() {
+        System.out.println("<init>");
     }
 }