lazy classloading: yet another bug
[mate.git] / tests / Instance7.java
diff --git a/tests/Instance7.java b/tests/Instance7.java
new file mode 100644 (file)
index 0000000..8c7e3f9
--- /dev/null
@@ -0,0 +1,21 @@
+package tests;
+
+public class Instance7 {
+       public static void main(String []args) {
+               int i_am_null = 0;
+               System.out.printf("before\n");
+               if (i_am_null > 0) {
+                       Instance7_notload a = new Instance7_notload();
+                       System.out.printf("loaded notload stuff o_O: %d\n", a.foo);
+               } else {
+                       System.out.printf("Nothing to do here\n");
+               }
+       }
+}
+
+class Instance7_notload {
+       static {
+               System.out.printf("sup, I'm Instance7_notload\n");
+       }
+       public int foo = 6;
+}