mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-26 17:58:43 +02:00
13 lines
312 B
Java
13 lines
312 B
Java
![]() |
aspect B {
|
||
|
public A.new(String s) { }
|
||
|
public void A.foo() { int i = 1; }
|
||
|
|
||
|
declare warning: withincode(void main(..)): "X"; // Would NPE without the fix for PR67774
|
||
|
|
||
|
declare warning: withincode(A.new(String)): "In String ctor";
|
||
|
|
||
|
}
|
||
|
|
||
|
class A {
|
||
|
private final static String name = A.class.getName();
|
||
|
}
|