summaryrefslogtreecommitdiffstats
path: root/tests/bugs163/pr257754/Main2.java
blob: 4f40a5bf7a79815a83bacefd212f71cd93d0ac76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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;
}