summaryrefslogtreecommitdiffstats
path: root/tests/bugs152/pr135068/t/Ajava2.java
diff options
context:
space:
mode:
authoraclement <aclement>2006-05-16 07:38:53 +0000
committeraclement <aclement>2006-05-16 07:38:53 +0000
commit9ffc63b51aa49fa3bb67a4a1c40dd7d1fe4c97ae (patch)
tree849734d4b11d088f3f5159c69034c727093397ce /tests/bugs152/pr135068/t/Ajava2.java
parent5c2da6f738945e027241703ef91c49099d9851d8 (diff)
downloadaspectj-9ffc63b51aa49fa3bb67a4a1c40dd7d1fe4c97ae.tar.gz
aspectj-9ffc63b51aa49fa3bb67a4a1c40dd7d1fe4c97ae.zip
tests and fix for 135068: verifyerror for @AJ
Diffstat (limited to 'tests/bugs152/pr135068/t/Ajava2.java')
-rw-r--r--tests/bugs152/pr135068/t/Ajava2.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/bugs152/pr135068/t/Ajava2.java b/tests/bugs152/pr135068/t/Ajava2.java
new file mode 100644
index 000000000..5bf933c5d
--- /dev/null
+++ b/tests/bugs152/pr135068/t/Ajava2.java
@@ -0,0 +1,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();
+ }
+}