diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bugs150/PR90827.aj | 6 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/bugs150/PR90827.aj b/tests/bugs150/PR90827.aj new file mode 100644 index 000000000..e7fd047cc --- /dev/null +++ b/tests/bugs150/PR90827.aj @@ -0,0 +1,6 @@ +// "enum called Enum, annotation called Annotation, etc" + +enum Enum {A,B,C} +@interface Annotation {} +aspect Aspect{} +class Class{} diff --git a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java index cd5efbb3c..1f9d16ca0 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc150/Ajc150Tests.java @@ -157,6 +157,10 @@ public class Ajc150Tests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("pertypewithin({interface}) illegal field modifier"); } + public void testEnumCalledEnumEtc() { + runTest("enum called Enum, annotation called Annotation, etc"); + } + // helper methods..... public SyntheticRepository createRepos(File cpentry) { |