의 미러
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-16 02:10:48 +02:00
20 lines
347 B
Plaintext
20 lines
347 B
Plaintext
public aspect Pr88652 {
|
|
|
|
pointcut p(): call(Touple.new(..));
|
|
|
|
declare warning: p() : "should match";
|
|
|
|
public static void main(String[] args) {
|
|
Touple t = new Touple(new Object());
|
|
Touple t2 = new Touple(new Object(),new Object());
|
|
}
|
|
}
|
|
|
|
|
|
class Touple {
|
|
|
|
public Touple(Object formulaHandle, Object... propositions) {
|
|
; // empty
|
|
}
|
|
|
|
} |