aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/WithincodeNPE01.java
blob: 0ff93dc673b3ca450949ae84d76213be2d04c198 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
aspect B {
  public A.new(String s) {this(); }
  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();
}