aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1919/366085/DeclareAnnotationsAspect.aj
blob: 8fdc9460c09de5d84a2ae31042271711c242022f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;
}