blob: 0cf66164718f7c4d122da32d5edc4c1b674eff83 (
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
28
29
30
31
32
33
34
35
|
import org.aspectj.lang.annotation.*;
public aspect Pr62606 {
// xlint
public Target.new() {}
// no xlint
public Target.new(String s) {
this(1);
}
// no xlint
@SuppressAjWarnings
public Target.new(double d) {}
// no xlint
@SuppressAjWarnings({"noExplicitConstructorCall"})
public Target.new(float f) {}
// no xlint
@SuppressAjWarnings({"adviceDidNotMatch","noExplicitConstructorCall"})
public Target.new(short s) {}
}
class Target {
int x = 5;
int y;
public Target(int z) {
this.y = z;
}
}
|