aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs151/pr126560/pkg2/InOneFile.java
blob: bd11fd1e86ad6d36abe7106505c2f0d8d407930f (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
package pkg2;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.DeclareWarning;
import org.aspectj.lang.annotation.DeclareError;

public class InOneFile {

    public void hello() {}

    public void hi() {}

    public void target() {
        hello();
        hi();
    }

    @Aspect
    public static class DeowAspect {

        @DeclareWarning("call(* InOneFile.hello())")
        final static String onHello = "call hello";

        @DeclareError("call(* InOneFile.hi())")
        final static String onHi = "call hi";
    }
}