mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-13 15:45:38 +02:00
24 lines
597 B
Java
24 lines
597 B
Java
|
|
|
|
/** @testcase PR#65925 Valid but inaccessible type names should not be flagged by XLint:invalidAbsoluteTypeName */
|
|
public class False_InvalidAbsoluteTypeName {
|
|
public static void main(String[] args) {
|
|
C.go();
|
|
}
|
|
}
|
|
|
|
class C {
|
|
static void go() {
|
|
Nested.method();
|
|
}
|
|
|
|
// remove "private" to work around bug
|
|
private static class Nested {
|
|
static void method() {} // CW 17 per declare
|
|
}
|
|
}
|
|
|
|
aspect A {
|
|
// bug: trigger XLint:invalidAbsoluteTypeName b/c not visible, though valid
|
|
declare warning : execution(void C.Nested.method()) : "nested method";
|
|
} |