diff options
author | aclement <aclement> | 2006-05-22 10:02:17 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-05-22 10:02:17 +0000 |
commit | 054eb78c6697e95d28b36b6bb966068fc1f0d5c6 (patch) | |
tree | 72e91decb4bceaadc269b3e67292573e321dd58d /tests/bugs152 | |
parent | e9c2a596fb624caa4c17f9ae13e168d17726efef (diff) | |
download | aspectj-054eb78c6697e95d28b36b6bb966068fc1f0d5c6.tar.gz aspectj-054eb78c6697e95d28b36b6bb966068fc1f0d5c6.zip |
moved pr132349 from 151 to 152
Diffstat (limited to 'tests/bugs152')
-rw-r--r-- | tests/bugs152/pr132349/TopLevelType.java | 16 | ||||
-rw-r--r-- | tests/bugs152/pr132349/TopLevelType2.java | 17 | ||||
-rw-r--r-- | tests/bugs152/pr132349/TopLevelType3.java | 17 |
3 files changed, 50 insertions, 0 deletions
diff --git a/tests/bugs152/pr132349/TopLevelType.java b/tests/bugs152/pr132349/TopLevelType.java new file mode 100644 index 000000000..fd29eddeb --- /dev/null +++ b/tests/bugs152/pr132349/TopLevelType.java @@ -0,0 +1,16 @@ +public class TopLevelType<E> { + public static class NestedType {} + + public static void main(String[] args) { + TopLevelType tlt = new TopLevelType(); + NestedType nt = new NestedType(); + nt.someMethod(); + } +} + +aspect SomeAspect { + public void TopLevelType.NestedType.someMethod() { + } + +} + diff --git a/tests/bugs152/pr132349/TopLevelType2.java b/tests/bugs152/pr132349/TopLevelType2.java new file mode 100644 index 000000000..ab1b61829 --- /dev/null +++ b/tests/bugs152/pr132349/TopLevelType2.java @@ -0,0 +1,17 @@ +public class TopLevelType2<E> { + public static class NestedType {} + + public static void main(String[] args) { + TopLevelType2 tlt = new TopLevelType2(); + NestedType nt = new NestedType(); + nt.someMethod(); + } +} + +aspect SomeAspect { + public void TopLevelType2<String>.NestedType.someMethod() { // error - can't do that + } +} + + + diff --git a/tests/bugs152/pr132349/TopLevelType3.java b/tests/bugs152/pr132349/TopLevelType3.java new file mode 100644 index 000000000..8cc55d6cb --- /dev/null +++ b/tests/bugs152/pr132349/TopLevelType3.java @@ -0,0 +1,17 @@ +public class TopLevelType3<E> { + public static class NestedType<T> {} + + public static void main(String[] args) { + TopLevelType3 tlt = new TopLevelType3(); + NestedType nt = new NestedType(); + nt.someMethod(); + } +} + +aspect SomeAspect { + public void TopLevelType3.NestedType<String>.someMethod() { // error - can't do that + } +} + + + |