aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1919/366085/DeclareAnnotationsAspect.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs1919/366085/DeclareAnnotationsAspect.aj')
-rw-r--r--tests/bugs1919/366085/DeclareAnnotationsAspect.aj13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/bugs1919/366085/DeclareAnnotationsAspect.aj b/tests/bugs1919/366085/DeclareAnnotationsAspect.aj
new file mode 100644
index 000000000..8fdc9460c
--- /dev/null
+++ b/tests/bugs1919/366085/DeclareAnnotationsAspect.aj
@@ -0,0 +1,13 @@
+public aspect DeclareAnnotationsAspect {
+ // These should be ignored, because @ToString has SOURCE retention
+ declare @type : Application : @ToString;
+ declare @method : * Application.*(..) : @ToString;
+ declare @constructor : Application.new(..) : @ToString;
+ declare @field : * Application.* : @ToString;
+
+ // These should be applied, because @Marker has RUNTIME retention
+ declare @type : Application : @Marker;
+ declare @method : * Application.*(..) : @Marker;
+ declare @constructor : Application.new(..) : @Marker;
+ declare @field : * Application.* : @Marker;
+}