aboutsummaryrefslogtreecommitdiffstats
path: root/tests/model/pr132130/pr132130.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/model/pr132130/pr132130.aj')
-rw-r--r--tests/model/pr132130/pr132130.aj17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/model/pr132130/pr132130.aj b/tests/model/pr132130/pr132130.aj
new file mode 100644
index 000000000..3259d7232
--- /dev/null
+++ b/tests/model/pr132130/pr132130.aj
@@ -0,0 +1,17 @@
+ aspect basic {
+
+ declare @method : * debit(..) : @Secured(role="supervisor");
+ declare @constructor : BankAccount+.new(..) : @Secured(role="supervisor");
+}
+
+class BankAccount {
+
+ public BankAccount(String s, int i) {
+ }
+ public void debit(long accId,long amount) {
+ }
+}
+
+@interface Secured {
+ String role();
+}