鏡像自
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-26 05:57:44 +02:00
21 行
396 B
Java
21 行
396 B
Java
|
|
import org.aspectj.testing.Tester;
|
|
|
|
|
|
|
|
|
|
|
|
/** @testcase PR#280 wildcard used for returns clause */
|
|
public class WildcardForReturns {
|
|
public static void main(String[] args) {
|
|
new WildcardForReturns().m();
|
|
}
|
|
|
|
public void m() { }
|
|
}
|
|
aspect A {
|
|
* around (WildcardForReturns t): this(t) && call(* m()) { // CE 17
|
|
// bad test - return null; //return proceed(t);
|
|
}
|
|
}
|