aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs152/pr147701/TestBean2.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs152/pr147701/TestBean2.java')
-rw-r--r--tests/bugs152/pr147701/TestBean2.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/bugs152/pr147701/TestBean2.java b/tests/bugs152/pr147701/TestBean2.java
new file mode 100644
index 000000000..229de4abf
--- /dev/null
+++ b/tests/bugs152/pr147701/TestBean2.java
@@ -0,0 +1,24 @@
+package a.b.c;
+
+import org.aspectj.lang.annotation.*;
+
+interface I { public void m() throws BeansException; }
+
+class Impl implements I {
+ public Impl() {}
+ public void m() throws BeansException { }
+}
+
+@Aspect
+class TestBeanAdvice {
+ @DeclareParents(value="a.b.c.TestBean2", defaultImpl=a.b.c.Impl.class)
+ private I implementationInterface;
+}
+
+public class TestBean2 {
+ public static void main(String []argv) throws Exception {
+ ((I)new TestBean2()).m();
+ }
+}
+
+class BeansException extends Exception {}