diff options
author | Andy Clement <andrew.clement@gmail.com> | 2012-07-10 10:18:35 -0700 |
---|---|---|
committer | Andy Clement <andrew.clement@gmail.com> | 2012-07-10 10:18:35 -0700 |
commit | bf949d3260232dd69a5fd3a2b81a19cb3dd1a6a6 (patch) | |
tree | a128790e3b29e568bc3044ae9ef6cf2c1162b315 /tests/bugs171 | |
parent | 5d0e1860cb5069b266ba70d33bc356d36e285a90 (diff) | |
download | aspectj-bf949d3260232dd69a5fd3a2b81a19cb3dd1a6a6.tar.gz aspectj-bf949d3260232dd69a5fd3a2b81a19cb3dd1a6a6.zip |
384398: some fixes for generics/itds/inner classes
Diffstat (limited to 'tests/bugs171')
-rwxr-xr-x | tests/bugs171/pr384398/A.java | 9 | ||||
-rwxr-xr-x | tests/bugs171/pr384398/B.java | 13 | ||||
-rwxr-xr-x | tests/bugs171/pr384398/BAspect.aj | 15 | ||||
-rwxr-xr-x | tests/bugs171/pr384398_2/A.java | 9 | ||||
-rwxr-xr-x | tests/bugs171/pr384398_2/B.java | 14 | ||||
-rwxr-xr-x | tests/bugs171/pr384398_2/BAspect.aj | 16 |
6 files changed, 76 insertions, 0 deletions
diff --git a/tests/bugs171/pr384398/A.java b/tests/bugs171/pr384398/A.java new file mode 100755 index 000000000..bc79f0699 --- /dev/null +++ b/tests/bugs171/pr384398/A.java @@ -0,0 +1,9 @@ +package de.example;
+
+public class A<T> {
+ public static class InnerA{
+
+ }
+
+
+}
diff --git a/tests/bugs171/pr384398/B.java b/tests/bugs171/pr384398/B.java new file mode 100755 index 000000000..4673547a0 --- /dev/null +++ b/tests/bugs171/pr384398/B.java @@ -0,0 +1,13 @@ +package de.example;
+
+public class B extends A<String> {
+/* + InnerA someMethod(){ + return new InnerA(); + } + + InnerA someOtherMethod(){ + return someMethod(); + } +*/ +}
diff --git a/tests/bugs171/pr384398/BAspect.aj b/tests/bugs171/pr384398/BAspect.aj new file mode 100755 index 000000000..2a580f238 --- /dev/null +++ b/tests/bugs171/pr384398/BAspect.aj @@ -0,0 +1,15 @@ +package de.example;
+
+import de.example.A.InnerA;
+
+public aspect BAspect {
+
+ InnerA B.someMethod(){
+ return new InnerA();
+ }
+
+ InnerA B.someOtherMethod(){
+ return someMethod();
+ }
+
+}
diff --git a/tests/bugs171/pr384398_2/A.java b/tests/bugs171/pr384398_2/A.java new file mode 100755 index 000000000..9b7049050 --- /dev/null +++ b/tests/bugs171/pr384398_2/A.java @@ -0,0 +1,9 @@ +package de.example;
+
+public class A<T> {
+ public class InnerA {
+ T aaa; + }
+
+
+}
diff --git a/tests/bugs171/pr384398_2/B.java b/tests/bugs171/pr384398_2/B.java new file mode 100755 index 000000000..3e3868445 --- /dev/null +++ b/tests/bugs171/pr384398_2/B.java @@ -0,0 +1,14 @@ +package de.example;
+
+public class B extends A<String> { +/* + InnerA someMethod(){ + A<String> as = new A<String>(); + return as.new InnerA(); + } + + InnerA someOtherMethod() { + return someMethod(); + } +*/ +} diff --git a/tests/bugs171/pr384398_2/BAspect.aj b/tests/bugs171/pr384398_2/BAspect.aj new file mode 100755 index 000000000..fcba89b39 --- /dev/null +++ b/tests/bugs171/pr384398_2/BAspect.aj @@ -0,0 +1,16 @@ +package de.example;
+
+import de.example.A.InnerA;
+
+public aspect BAspect {
+
+ InnerA B.someMethod(){
+ A<String> as = new A<String>(); + return as.new InnerA();
+ }
+
+ InnerA B.someOtherMethod(){
+ return someMethod();
+ }
+
+}
|