aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150/pr72668.aj
blob: 6c8dac4baf242a859626600a9f3ceefa0cb2b4eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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();
	}
	
}