aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/NonexistentFieldInitializers.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/new/NonexistentFieldInitializers.java')
-rw-r--r--tests/new/NonexistentFieldInitializers.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/new/NonexistentFieldInitializers.java b/tests/new/NonexistentFieldInitializers.java
new file mode 100644
index 000000000..d0ec6ebc4
--- /dev/null
+++ b/tests/new/NonexistentFieldInitializers.java
@@ -0,0 +1,23 @@
+// join points in field initializers aren't showing up.
+
+import org.aspectj.testing.Tester;
+
+public class NonexistentFieldInitializers {
+ public static void main(String[] args) {
+ new NonexistentFieldInitializers();
+ Tester.checkEqual(A.i, 2, "Not finding some join points in initializers");
+ }
+
+ static Object so = System.in;
+
+ Object o = System.in;
+}
+
+aspect A {
+ static int i;
+
+ before(): get(* System.in) {
+ i++;
+ }
+}
+