summaryrefslogtreecommitdiffstats
path: root/tests/multiIncremental
diff options
context:
space:
mode:
authoraclement <aclement>2008-11-29 20:46:47 +0000
committeraclement <aclement>2008-11-29 20:46:47 +0000
commit3a996832d394faf409bbca5bef7846256bb3592d (patch)
tree115728dcf15418b2a1a30c983a914754c0db3049 /tests/multiIncremental
parent46b72b291ccd708accfa69353c443b35497dd166 (diff)
downloadaspectj-3a996832d394faf409bbca5bef7846256bb3592d.tar.gz
aspectj-3a996832d394faf409bbca5bef7846256bb3592d.zip
255555: pattern parser allowing for parentheses around declare anno signatures; cope with weaving broken code.
Diffstat (limited to 'tests/multiIncremental')
-rw-r--r--tests/multiIncremental/pr255555/base/src/test/Demo.aj15
-rw-r--r--tests/multiIncremental/pr255555/base/src/test/MyAspect.aj12
2 files changed, 27 insertions, 0 deletions
diff --git a/tests/multiIncremental/pr255555/base/src/test/Demo.aj b/tests/multiIncremental/pr255555/base/src/test/Demo.aj
new file mode 100644
index 000000000..1f23a21d8
--- /dev/null
+++ b/tests/multiIncremental/pr255555/base/src/test/Demo.aj
@@ -0,0 +1,15 @@
+package test;
+
+import java.util.List;
+
+public class Demo {
+
+/*
+ void g() {
+ new Demo(7).foo(null);
+ x++;
+ this.x++;
+ }
+*/
+
+}
diff --git a/tests/multiIncremental/pr255555/base/src/test/MyAspect.aj b/tests/multiIncremental/pr255555/base/src/test/MyAspect.aj
new file mode 100644
index 000000000..970be41e5
--- /dev/null
+++ b/tests/multiIncremental/pr255555/base/src/test/MyAspect.aj
@@ -0,0 +1,12 @@
+package test;
+import java.util.List;
+
+public privileged aspect MyAspect {
+ void Demo.foo(java.util.List<String> x) { }
+ declare @method: (void Demo.foo(..): @Deprecated;
+ declare @type: Demo: @Deprecated;
+
+ //declare @field: (int Demo.x): @Deprecated;
+ //declare @constructor: (public Demo.new(int)): @Deprecated;
+
+}