aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs162
diff options
context:
space:
mode:
authoraclement <aclement>2008-07-03 23:50:46 +0000
committeraclement <aclement>2008-07-03 23:50:46 +0000
commit288e4a9bf59acc44fc885f6ee7d8edd312d8608f (patch)
treec846afc36f69971dcc3b6882430e17a7378ae755 /tests/bugs162
parent93082a29639ef8919ca50c4124c52d4d6337077e (diff)
downloadaspectj-288e4a9bf59acc44fc885f6ee7d8edd312d8608f.tar.gz
aspectj-288e4a9bf59acc44fc885f6ee7d8edd312d8608f.zip
162 test infra
Diffstat (limited to 'tests/bugs162')
-rw-r--r--tests/bugs162/pr239441/SampleAspect.java11
-rw-r--r--tests/bugs162/pr239441/Test3.java23
2 files changed, 34 insertions, 0 deletions
diff --git a/tests/bugs162/pr239441/SampleAspect.java b/tests/bugs162/pr239441/SampleAspect.java
new file mode 100644
index 000000000..5aa4a369b
--- /dev/null
+++ b/tests/bugs162/pr239441/SampleAspect.java
@@ -0,0 +1,11 @@
+import java.lang.annotation.*;
+
+public aspect SampleAspect {
+ declare parents : hasmethod(@Something * *.*(..)) implements SampleInterface;
+
+ private interface SampleInterface{
+ }
+}
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface Something {} \ No newline at end of file
diff --git a/tests/bugs162/pr239441/Test3.java b/tests/bugs162/pr239441/Test3.java
new file mode 100644
index 000000000..c743af7bc
--- /dev/null
+++ b/tests/bugs162/pr239441/Test3.java
@@ -0,0 +1,23 @@
+import java.util.*;
+public class Test3 {
+
+ public Iterator<Integer> iter = new Iterator<Integer>() {
+//
+// @Override
+ public boolean hasNext() {
+ return false;
+ }
+//
+// @Override
+ public Integer next() {
+ return null;
+ }
+//
+// @Override
+ public void remove() {
+ }
+
+ };
+
+}
+