diff options
author | acolyer <acolyer> | 2005-08-31 13:32:52 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-08-31 13:32:52 +0000 |
commit | 53c725aef7efb4bf4012a67dc2408b0c24818a26 (patch) | |
tree | b672e24a8012d29296ac3d6069ce1e968b2480e2 /tests/bugs150/pr108370 | |
parent | 8fc27ca674446cec163f22412d11b5e2ee674549 (diff) | |
download | aspectj-53c725aef7efb4bf4012a67dc2408b0c24818a26.tar.gz aspectj-53c725aef7efb4bf4012a67dc2408b0c24818a26.zip |
tests for pr108370, enum switch in itd method with target type on the inpath
Diffstat (limited to 'tests/bugs150/pr108370')
-rw-r--r-- | tests/bugs150/pr108370/EnumTest.aj | 19 | ||||
-rw-r--r-- | tests/bugs150/pr108370/et/Q.java | 2 |
2 files changed, 21 insertions, 0 deletions
diff --git a/tests/bugs150/pr108370/EnumTest.aj b/tests/bugs150/pr108370/EnumTest.aj new file mode 100644 index 000000000..44286f58a --- /dev/null +++ b/tests/bugs150/pr108370/EnumTest.aj @@ -0,0 +1,19 @@ +public aspect EnumTest { + public static enum Test { + A,B,C + } + + public void et.Q.foo(Test t) { + switch (t) { + case B: + System.out.println("B!"); + break; + } + } + + public static void main(String[] args) { + et.Q q = new et.Q(); + q.foo(Test.B); + q.foo(Test.C); + } +}
\ No newline at end of file diff --git a/tests/bugs150/pr108370/et/Q.java b/tests/bugs150/pr108370/et/Q.java new file mode 100644 index 000000000..6c070156a --- /dev/null +++ b/tests/bugs150/pr108370/et/Q.java @@ -0,0 +1,2 @@ +package et; +public class Q {}
\ No newline at end of file |