aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs170
diff options
context:
space:
mode:
authoraclement <aclement>2011-11-22 19:31:45 +0000
committeraclement <aclement>2011-11-22 19:31:45 +0000
commit0026293b68150e3b268bfe65c493f5061addefdd (patch)
treeac30515ae0c06172054e73db506849d57958d883 /tests/bugs170
parent061afbf70e6f64b1e8a3c034cc5ef6d1652df76d (diff)
downloadaspectj-0026293b68150e3b268bfe65c493f5061addefdd.tar.gz
aspectj-0026293b68150e3b268bfe65c493f5061addefdd.zip
364380
Diffstat (limited to 'tests/bugs170')
-rw-r--r--tests/bugs170/pr364380/C.java14
-rw-r--r--tests/bugs170/pr364380/X.aj16
2 files changed, 30 insertions, 0 deletions
diff --git a/tests/bugs170/pr364380/C.java b/tests/bugs170/pr364380/C.java
new file mode 100644
index 000000000..9d930613c
--- /dev/null
+++ b/tests/bugs170/pr364380/C.java
@@ -0,0 +1,14 @@
+package ca;
+
+import org.aspectj.lang.annotation.*;
+
+public class C {
+
+ public static void main(String[]argv) {
+ new C().setOwner();
+ }
+
+ public void setOwner() {
+ }
+
+}
diff --git a/tests/bugs170/pr364380/X.aj b/tests/bugs170/pr364380/X.aj
new file mode 100644
index 000000000..c69da1167
--- /dev/null
+++ b/tests/bugs170/pr364380/X.aj
@@ -0,0 +1,16 @@
+package ca;
+import org.aspectj.lang.annotation.*;
+
+@Aspect
+class OwnershipSecurityAspect {
+
+
+ @Pointcut("call(public void ca..setOwner(..)) && !within(ca..OwnershipSecurityAspect) && !within(ca..*Test)")
+ protected void myPcut() {}
+
+ @DeclareWarning("myPcut()")
+ public static final String securityError = "An advice already exists for setting an owner";
+
+
+
+}