summaryrefslogtreecommitdiffstats
path: root/tests/bugs154/pr211052/MyPojo.java
blob: b916d2ebc40aa345b10ae08a796ee034f6137e7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
aspect ConfigureTracing {
        declare @type : MyPojo : @Tracing(level = LoggingLevel.WARN);
//        declare @method : * MyPojo.calculate() : @TestAnnotation;
}

@interface Tracing { LoggingLevel level(); }

@interface TestAnnotation {}

class Level {
  Level(int i) {}
  public final static Level INFO = new Level(1);
  public final static Level WARN = new Level(2);
  public final static Level ERROR = new Level(3);
}
//@Tracing(level = LoggingLevel.WARN)
enum LoggingLevel {
  INFO(Level.INFO),
  WARN(Level.WARN),
  ERROR(Level.ERROR);
      
  private final Level level;
  private LoggingLevel(Level level) {this.level = level;}
  public Level getLevel() {return level;}
}

public class MyPojo {
  public static void calculate() {
  }
  public static void main(String []argv) {
	  
  }
}