summaryrefslogtreecommitdiffstats
path: root/tests/java5
diff options
context:
space:
mode:
authoraclement <aclement>2005-04-20 14:32:40 +0000
committeraclement <aclement>2005-04-20 14:32:40 +0000
commit3f942a4c58210535e91c50a037a8d743a0c70e19 (patch)
treececc507db4a72d422a40089d1664a77c2f1dd075 /tests/java5
parent78abc76610cfb5fd2a2282086adfb017537ce49c (diff)
downloadaspectj-3f942a4c58210535e91c50a037a8d743a0c70e19.tar.gz
aspectj-3f942a4c58210535e91c50a037a8d743a0c70e19.zip
Fix for pr92053: atargs causes a VerifyError: Unable to pop operand off an empty stack
Diffstat (limited to 'tests/java5')
-rw-r--r--tests/java5/annotations/binding/bugs/Test3.java23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/java5/annotations/binding/bugs/Test3.java b/tests/java5/annotations/binding/bugs/Test3.java
new file mode 100644
index 000000000..93b3ebf86
--- /dev/null
+++ b/tests/java5/annotations/binding/bugs/Test3.java
@@ -0,0 +1,23 @@
+import java.lang.annotation.*;
+
+@Target(ElementType.TYPE)
+@Retention(RetentionPolicy.RUNTIME)
+@interface Ann {}
+
+@Ann
+class C{}
+
+public class Test3 {
+
+ public static void main(String[] args) {
+ C a = new C();
+ abc(a);
+ }
+
+ static void abc(C y) {}
+}
+
+
+aspect Annotations {
+ before(Ann ann) : call(* Test3.*(..)) && @args(ann) { }
+}