summaryrefslogtreecommitdiffstats
path: root/tests/bugs162/pr197720/C3.java
blob: 6d30b3a78b7195faaefad76aa19f1cd1020ac61a (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package test.aspects;



public class C3 {
    public void callAMethodC2() {
        C1 c1 = new C1();
        c1.aMethod(); // Should be a marker here...
        
        C2 c2 = new C2();
        c2.aMethod();  // Should be a marker here...
    }
    
    public void innerClassCall() {
        InnerClass ic = new InnerClass();
        
        ic.foo();
    }
    protected class InnerClass {
        public void foo() {
            C1 c1 = new C1();
            c1.aMethod();  // Should be a marker here...

            C2 c2 = new C2();
            c2.aMethod();  // Should be a marker here...
        }
    }
    
    public static void main(String [] args) {
        C1 c1 = new C1();
        
        c1.aMethod(); // Should be a marker here...
        c1.callAMethod();
        
        C3 c2 = new C3();
        
        c2.callAMethodC2();
        c2.innerClassCall();
    }
}