summaryrefslogtreecommitdiffstats
path: root/tests/bugs154/pr211052/MyPojo.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs154/pr211052/MyPojo.java')
-rw-r--r--tests/bugs154/pr211052/MyPojo.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/bugs154/pr211052/MyPojo.java b/tests/bugs154/pr211052/MyPojo.java
new file mode 100644
index 000000000..b916d2ebc
--- /dev/null
+++ b/tests/bugs154/pr211052/MyPojo.java
@@ -0,0 +1,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) {
+
+ }
+}