summaryrefslogtreecommitdiffstats
path: root/tests/bugs150
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-09-09 10:48:58 +0000
committeracolyer <acolyer>2005-09-09 10:48:58 +0000
commita9ca915dc39c87267a7a763d51e87a819e9799c7 (patch)
treea5918da4b73c3079ac5077312db1d3e27e2ca955 /tests/bugs150
parentd2447a0cc3201a1792ffe19579e92e0e609de7e8 (diff)
downloadaspectj-a9ca915dc39c87267a7a763d51e87a819e9799c7.tar.gz
aspectj-a9ca915dc39c87267a7a763d51e87a819e9799c7.zip
tests and fix for pr109124, not correctly recognizing synthetic fields under 1.5
Diffstat (limited to 'tests/bugs150')
-rw-r--r--tests/bugs150/VerifyErrorOnSet.aj35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/bugs150/VerifyErrorOnSet.aj b/tests/bugs150/VerifyErrorOnSet.aj
new file mode 100644
index 000000000..a37f027c3
--- /dev/null
+++ b/tests/bugs150/VerifyErrorOnSet.aj
@@ -0,0 +1,35 @@
+package test;
+public class VerifyErrorOnSet {
+
+ class Node {
+ int value;
+
+ Node(int v)
+ {
+ value = v;
+ }
+ }
+
+
+ public VerifyErrorOnSet()
+ {
+ new Node(1);
+ }
+
+ public static void main(String[] args) {
+ VerifyErrorOnSet l = new VerifyErrorOnSet();
+ }
+
+}
+
+
+aspect ListAspect {
+
+ pointcut setField(Object t) : target(t) && set(* VerifyErrorOnSet.Node+.*);
+
+ before(Object t) : setField(t) {
+ System.out.println("WRITE");
+ // Do something with t...
+ }
+
+}