镜像自地址
https://github.com/eclipse-aspectj/aspectj.git
已同步 2024-07-21 12:30:34 +02:00
17 行
246 B
Plaintext
17 行
246 B
Plaintext
![]() |
package pkg2;
|
||
|
import pkg1.*;
|
||
|
|
||
|
public aspect ITDInDiffPackage {
|
||
|
|
||
|
void B.foo() {}
|
||
|
|
||
|
void bar() {
|
||
|
C c = new C();
|
||
|
c.foo();
|
||
|
}
|
||
|
|
||
|
declare warning : call(* B.foo()) : "should not match";
|
||
|
declare warning : call(* C.foo()) : "should match";
|
||
|
|
||
|
|
||
|
}
|