aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1612
diff options
context:
space:
mode:
authoraclement <aclement>2011-05-12 19:55:28 +0000
committeraclement <aclement>2011-05-12 19:55:28 +0000
commit71608e1577185ba16a587a09f1e5bd60e08bf307 (patch)
tree5a545581d930634d50c132bec03c9735f4cbce8e /tests/bugs1612
parent999d3836f0b541f619f50580d2aca8316485ecb7 (diff)
downloadaspectj-71608e1577185ba16a587a09f1e5bd60e08bf307.tar.gz
aspectj-71608e1577185ba16a587a09f1e5bd60e08bf307.zip
345172
Diffstat (limited to 'tests/bugs1612')
-rw-r--r--tests/bugs1612/pr345172/InterType3.java44
1 files changed, 44 insertions, 0 deletions
diff --git a/tests/bugs1612/pr345172/InterType3.java b/tests/bugs1612/pr345172/InterType3.java
new file mode 100644
index 000000000..7e88245c4
--- /dev/null
+++ b/tests/bugs1612/pr345172/InterType3.java
@@ -0,0 +1,44 @@
+import static java.lang.annotation.ElementType.*;
+import java.lang.annotation.*;
+
+public aspect InterType3 {
+
+ @Retention(RetentionPolicy.RUNTIME)
+ @Target({METHOD})
+ public @interface MyAnnotation {
+ }
+
+ public static aspect AroundMethod {
+ Object around() : execution(@MyAnnotation * * (..)) {
+ System.out.println(thisJoinPointStaticPart);
+ return proceed();
+ }
+ }
+
+ public interface InterTypeIfc {}
+
+ // (1)
+ @MyAnnotation
+ public void InterTypeIfc.m1(int p1, String p2) {}
+
+ // (2)
+ public void InterTypeIfc.m1(int p1, int p2) {}
+
+ // (3)
+// @MyAnnotation
+// public void m1(int p1) {}
+
+ // (4)
+// public void m1(int p1, int p2) {}
+
+
+ public static void main(String []argv) throws Exception {
+ new Foo().m1(1,"a");
+ new Foo().m1(1,2);
+ }
+
+ declare parents: Foo implements InterTypeIfc;
+
+ static class Foo {
+ }
+}