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.

pr72668.aj 445B

1234567891011121314151617181920
  1. public aspect pr72668 {
  2. Number[] getThoseInts() {
  3. return new Integer[0];
  4. }
  5. declare warning : execution(Object[] *(..)) : "should not match";
  6. @org.aspectj.lang.annotation.SuppressAjWarnings("adviceDidNotMatch")
  7. Object[] around() : execution(*[] *(..)) {
  8. Object[] ret = proceed();
  9. return (Object[]) ret.clone();
  10. }
  11. Integer[] around() : execution(*[] *(..)) {
  12. Number[] ret = proceed();
  13. return (Integer[]) ret.clone();
  14. }
  15. }