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.

Failing.java 685B

1234567891011121314151617181920212223242526272829303132333435
  1. public aspect Failing {
  2. pointcut failingPointcut() : execution(* foo*(..));
  3. after() returning() : failingPointcut()
  4. {
  5. System.out.println("hit");
  6. }
  7. }
  8. class X <T extends Object> {
  9. // Pointcut match highlighted
  10. // void foo() {}
  11. // Pointcut match highlighted
  12. // void foo1(T x) {}
  13. // Pointcut not highlighted
  14. void foo2(T[] x) {}
  15. // Pointcut not highlighted
  16. // void foo3(T... x) {}
  17. // Pointcut highlighted
  18. // T foo3() { return null; }
  19. // Pointcut highlighted
  20. // T[] foo4() { return null; }
  21. public static void main(String[] args) {
  22. X<Object> x = new X<Object>();
  23. x.foo2(null);
  24. }
  25. }