aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs153
diff options
context:
space:
mode:
authoraclement <aclement>2008-07-18 21:56:31 +0000
committeraclement <aclement>2008-07-18 21:56:31 +0000
commitc78628924a9969b5e84ac13cbaf63efa13422d0e (patch)
treec98786af6dd97b09a2849159aa0089a63b841b48 /tests/bugs153
parent942138ee1f7be2ace3ed41901d97a21f32055e88 (diff)
downloadaspectj-c78628924a9969b5e84ac13cbaf63efa13422d0e.tar.gz
aspectj-c78628924a9969b5e84ac13cbaf63efa13422d0e.zip
230234 comment 10 - ajdoc modifications and tests
Diffstat (limited to 'tests/bugs153')
-rw-r--r--tests/bugs153/GenericMethod/C.java14
-rw-r--r--tests/bugs153/StaticImport/C.java8
-rw-r--r--tests/bugs153/StaticImport/StaticImport.java5
-rw-r--r--tests/bugs153/pr148908/BadInterface.java13
4 files changed, 40 insertions, 0 deletions
diff --git a/tests/bugs153/GenericMethod/C.java b/tests/bugs153/GenericMethod/C.java
new file mode 100644
index 000000000..8621aca45
--- /dev/null
+++ b/tests/bugs153/GenericMethod/C.java
@@ -0,0 +1,14 @@
+import java.util.List;
+
+public class C {
+ public <T> T returnT(T a){
+ return a;
+ }
+
+ public <Q extends List> Q returnQ(Q a){
+ return a;
+ }
+
+ public <T, Q> void doubleGeneric(Q a, T b){
+ }
+}
diff --git a/tests/bugs153/StaticImport/C.java b/tests/bugs153/StaticImport/C.java
new file mode 100644
index 000000000..fd86d0162
--- /dev/null
+++ b/tests/bugs153/StaticImport/C.java
@@ -0,0 +1,8 @@
+package ABC;
+
+import static ABC.StaticImport.Alphabet.A;
+import ABC.StaticImport.*;
+
+public class C {
+ protected Alphabet alphabet = A;
+}
diff --git a/tests/bugs153/StaticImport/StaticImport.java b/tests/bugs153/StaticImport/StaticImport.java
new file mode 100644
index 000000000..7148b8471
--- /dev/null
+++ b/tests/bugs153/StaticImport/StaticImport.java
@@ -0,0 +1,5 @@
+package ABC;
+
+public class StaticImport {
+ public enum Alphabet {A, B, C, D;}
+}
diff --git a/tests/bugs153/pr148908/BadInterface.java b/tests/bugs153/pr148908/BadInterface.java
index 700f652be..ea95de3f3 100644
--- a/tests/bugs153/pr148908/BadInterface.java
+++ b/tests/bugs153/pr148908/BadInterface.java
@@ -1,4 +1,6 @@
import java.util.Comparator;
+import java.util.LinkedList;
+import java.util.List;
public interface BadInterface {
@@ -8,4 +10,15 @@ public interface BadInterface {
return 0;
}
};
+
+ public List<String> aList = new LinkedList<String>() {{ add("Busted"); }};
+
+ public List<String> bList = new LinkedList<String>() {
+ public int size() {
+ for(int i = 0; i < 100; i++) {
+ return 0;
+ }
+ return modCount;
+ }
+ };
}