diff options
author | aclement <aclement> | 2011-11-22 19:31:45 +0000 |
---|---|---|
committer | aclement <aclement> | 2011-11-22 19:31:45 +0000 |
commit | 0026293b68150e3b268bfe65c493f5061addefdd (patch) | |
tree | ac30515ae0c06172054e73db506849d57958d883 /tests/bugs170 | |
parent | 061afbf70e6f64b1e8a3c034cc5ef6d1652df76d (diff) | |
download | aspectj-0026293b68150e3b268bfe65c493f5061addefdd.tar.gz aspectj-0026293b68150e3b268bfe65c493f5061addefdd.zip |
364380
Diffstat (limited to 'tests/bugs170')
-rw-r--r-- | tests/bugs170/pr364380/C.java | 14 | ||||
-rw-r--r-- | tests/bugs170/pr364380/X.aj | 16 |
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"; + + + +} |