mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-09-03 17:56:34 +02:00
20 lines
445 B
Plaintext
20 lines
445 B
Plaintext
![]() |
public aspect pr72668 {
|
||
|
|
||
|
Number[] getThoseInts() {
|
||
|
return new Integer[0];
|
||
|
}
|
||
|
|
||
|
declare warning : execution(Object[] *(..)) : "should not match";
|
||
|
|
||
|
@org.aspectj.lang.annotation.SuppressAjWarnings("adviceDidNotMatch")
|
||
|
Object[] around() : execution(*[] *(..)) {
|
||
|
Object[] ret = proceed();
|
||
|
return (Object[]) ret.clone();
|
||
|
}
|
||
|
|
||
|
Integer[] around() : execution(*[] *(..)) {
|
||
|
Number[] ret = proceed();
|
||
|
return (Integer[]) ret.clone();
|
||
|
}
|
||
|
|
||
|
}
|