summaryrefslogtreecommitdiffstats
path: root/tests/bugs152/pr135068/Ajava2.java
blob: cfe0d05b00fef69907b9c4727a7c41c1e5125d3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import java.net.InetAddress;
import java.net.UnknownHostException;

import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.*;

@Aspect
public class Ajava2 {

	@Around("call(public java.net.InetAddress C2.getAddress() throws java.net.UnknownHostException)")
	public static InetAddress getAddress() throws UnknownHostException {
		return InetAddress.getLocalHost();
	}
}