summaryrefslogtreecommitdiffstats
path: root/tests/new/binaryWarnings/src/aspects/MainExecStartLinesErrors.java
blob: 704afa98d80f1b1c6252697d2abe4dc9dd13f91b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package aspects;

import app.MainExecStartLines;

// WARNING: do not change message text without changing test specification
public privileged aspect MainExecStartLinesErrors {

    declare error : execution(void MainExecStartLines.main(String[]))
        : "execution(void MainExecStartLines.main(String[]))";

    declare error : handler(RuntimeException)
        && within(MainExecStartLines)
        : "handler(RuntimeException) && within(MainExecStartLines)";

}