diff options
Diffstat (limited to 'tests/bugs163/pr257754/Main2.java')
-rw-r--r-- | tests/bugs163/pr257754/Main2.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/bugs163/pr257754/Main2.java b/tests/bugs163/pr257754/Main2.java new file mode 100644 index 000000000..4f40a5bf7 --- /dev/null +++ b/tests/bugs163/pr257754/Main2.java @@ -0,0 +1,26 @@ +package example; +import impl.*; + +import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.DeclareParents; + +public class Main2 { + public static void main(String[] args) { + Bar bar = new Bar(); + ((Foo)bar).doFoo(); + bar.doBar(); + } +} + +class Bar { + public void doBar() { + System.out.println("Bar"); + } +} + +@Aspect +class Introduce { + @DeclareParents(value="example.Bar", defaultImpl=impl.DefaultFoo.class) + private Foo mixin; +} + |