You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WildcardForReturns.java 422B

123456789101112131415161718192021
  1. import org.aspectj.testing.Tester;
  2. /** @testcase PR#280 wildcard used for returns clause */
  3. public class WildcardForReturns {
  4. public static void main(String[] args) {
  5. new WildcardForReturns().m();
  6. }
  7. public void m() { }
  8. static aspect A {
  9. * around (WildcardForReturns t): this(t) && call(* m()) { // CE 17
  10. // bad test - return null; //return proceed(t);
  11. }
  12. }
  13. }