aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs172
diff options
context:
space:
mode:
authorAndy Clement <andrew.clement@gmail.com>2013-02-05 10:45:03 -0800
committerAndy Clement <andrew.clement@gmail.com>2013-02-05 10:45:03 -0800
commit46f90792c01a4333eb62bc2ea6a1dcfb3efb0d23 (patch)
treecb87366ed08b03f6a9a32a6084878406b4c7aaca /tests/bugs172
parent4af4b1e634c9dbb8af1741aad22a2c3441aa1751 (diff)
downloadaspectj-46f90792c01a4333eb62bc2ea6a1dcfb3efb0d23.tar.gz
aspectj-46f90792c01a4333eb62bc2ea6a1dcfb3efb0d23.zip
394535: fix
Diffstat (limited to 'tests/bugs172')
-rw-r--r--tests/bugs172/pr394535/Bug.java23
-rw-r--r--tests/bugs172/pr394535/Bug2.java19
2 files changed, 42 insertions, 0 deletions
diff --git a/tests/bugs172/pr394535/Bug.java b/tests/bugs172/pr394535/Bug.java
new file mode 100644
index 000000000..8370a59b3
--- /dev/null
+++ b/tests/bugs172/pr394535/Bug.java
@@ -0,0 +1,23 @@
+
+aspect X {
+ declare parents: Bug.ClassA implements java.io.Serializable;
+}
+public class Bug {
+
+// @org.springframework.beans.factory.annotation.Configurable
+ public static class ClassA<T extends Interface1 & Interface2> {
+ }
+
+ public static class ClassB extends ClassA<ClassB> implements Interface1, Interface2 {
+ }
+
+ public interface Interface1 {
+ }
+
+ public interface Interface2 {
+ }
+
+ public static void main(String[] args) throws Exception {
+ System.out.println(ClassB.class.getGenericSuperclass());
+ }
+}
diff --git a/tests/bugs172/pr394535/Bug2.java b/tests/bugs172/pr394535/Bug2.java
new file mode 100644
index 000000000..d5940e6ad
--- /dev/null
+++ b/tests/bugs172/pr394535/Bug2.java
@@ -0,0 +1,19 @@
+
+public class Bug2 {
+
+ public static class ClassA2<T extends Interface12 & Interface22> implements java.io.Serializable {
+ }
+
+ public static class ClassB2 extends ClassA2<ClassB2> implements Interface12, Interface22 {
+ }
+
+ public interface Interface12 {
+ }
+
+ public interface Interface22 {
+ }
+
+ public static void main(String[] args) throws Exception {
+ System.out.println(ClassB2.class.getGenericSuperclass());
+ }
+}