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

import java.net.InetAddress;
import java.net.UnknownHostException;

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

@Aspect
public class Ajava2 {

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