diff options
Diffstat (limited to 'tests/bugs152/pr135068/Ajava2.java')
-rw-r--r-- | tests/bugs152/pr135068/Ajava2.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/bugs152/pr135068/Ajava2.java b/tests/bugs152/pr135068/Ajava2.java new file mode 100644 index 000000000..cfe0d05b0 --- /dev/null +++ b/tests/bugs152/pr135068/Ajava2.java @@ -0,0 +1,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(); + } +} |