From 46f90792c01a4333eb62bc2ea6a1dcfb3efb0d23 Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Tue, 5 Feb 2013 10:45:03 -0800 Subject: 394535: fix --- tests/bugs172/pr394535/Bug.java | 23 +++++++++++++++++++++++ tests/bugs172/pr394535/Bug2.java | 19 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 tests/bugs172/pr394535/Bug.java create mode 100644 tests/bugs172/pr394535/Bug2.java (limited to 'tests/bugs172') 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 { + } + + public static class ClassB extends ClassA 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 implements java.io.Serializable { + } + + public static class ClassB2 extends ClassA2 implements Interface12, Interface22 { + } + + public interface Interface12 { + } + + public interface Interface22 { + } + + public static void main(String[] args) throws Exception { + System.out.println(ClassB2.class.getGenericSuperclass()); + } +} -- cgit v1.2.3