diff options
author | aclement <aclement> | 2008-07-18 21:56:31 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-07-18 21:56:31 +0000 |
commit | c78628924a9969b5e84ac13cbaf63efa13422d0e (patch) | |
tree | c98786af6dd97b09a2849159aa0089a63b841b48 /tests/bugs153 | |
parent | 942138ee1f7be2ace3ed41901d97a21f32055e88 (diff) | |
download | aspectj-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.java | 14 | ||||
-rw-r--r-- | tests/bugs153/StaticImport/C.java | 8 | ||||
-rw-r--r-- | tests/bugs153/StaticImport/StaticImport.java | 5 | ||||
-rw-r--r-- | tests/bugs153/pr148908/BadInterface.java | 13 |
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; + } + }; } |