diff options
author | aclement <aclement> | 2008-08-19 20:43:56 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-08-19 20:43:56 +0000 |
commit | 4b5f72539556206856cece31c722e4ef77b150ff (patch) | |
tree | ea722c47dd986040d3dbb0bee2a7055ff1130953 /tests/bugs162 | |
parent | fbee54f2121650ea5bc32ab2c19d76cd41c077f4 (diff) | |
download | aspectj-4b5f72539556206856cece31c722e4ef77b150ff.tar.gz aspectj-4b5f72539556206856cece31c722e4ef77b150ff.zip |
242797: crappy bounds checking in TypeVariable
Diffstat (limited to 'tests/bugs162')
-rw-r--r-- | tests/bugs162/pr242797/case3/GenericMethodAspect.aj | 10 | ||||
-rw-r--r-- | tests/bugs162/pr242797/case3/GenericMethodImpl.java | 10 | ||||
-rw-r--r-- | tests/bugs162/pr242797/case3/GenericMethodImpl2.java | 15 | ||||
-rw-r--r-- | tests/bugs162/pr242797/case3/GenericMethodInterface.java | 12 | ||||
-rw-r--r-- | tests/bugs162/pr242797/case3/Type1.java | 8 | ||||
-rw-r--r-- | tests/bugs162/pr242797/case3/Type2.java | 8 |
6 files changed, 63 insertions, 0 deletions
diff --git a/tests/bugs162/pr242797/case3/GenericMethodAspect.aj b/tests/bugs162/pr242797/case3/GenericMethodAspect.aj new file mode 100644 index 000000000..8bd5d166d --- /dev/null +++ b/tests/bugs162/pr242797/case3/GenericMethodAspect.aj @@ -0,0 +1,10 @@ +import java.util.ArrayList; +import java.util.List; + +public aspect GenericMethodAspect { + + public <T> List<T> GenericMethodInterface.getStuff(){ + return new ArrayList<T>(); + } + +} diff --git a/tests/bugs162/pr242797/case3/GenericMethodImpl.java b/tests/bugs162/pr242797/case3/GenericMethodImpl.java new file mode 100644 index 000000000..0c5218598 --- /dev/null +++ b/tests/bugs162/pr242797/case3/GenericMethodImpl.java @@ -0,0 +1,10 @@ +import java.util.LinkedList; +import java.util.List; + +public class GenericMethodImpl<D extends Type1> implements GenericMethodInterface{ + + public <T extends D> List<T> getStuff(){ + return new LinkedList<T>(); + } + +} diff --git a/tests/bugs162/pr242797/case3/GenericMethodImpl2.java b/tests/bugs162/pr242797/case3/GenericMethodImpl2.java new file mode 100644 index 000000000..0f79eb234 --- /dev/null +++ b/tests/bugs162/pr242797/case3/GenericMethodImpl2.java @@ -0,0 +1,15 @@ +import java.util.List; + + +/* + * Created on Aug 19, 2008 + */ + +public class GenericMethodImpl2 extends GenericMethodImpl<Type2> { + + @Override + public <T extends Type2> List<T> getStuff() { + return super.getStuff(); + } + +} diff --git a/tests/bugs162/pr242797/case3/GenericMethodInterface.java b/tests/bugs162/pr242797/case3/GenericMethodInterface.java new file mode 100644 index 000000000..c99f2e9e9 --- /dev/null +++ b/tests/bugs162/pr242797/case3/GenericMethodInterface.java @@ -0,0 +1,12 @@ +import java.util.List; + + +/* + * Created on Aug 19, 2008 + */ + +public interface GenericMethodInterface { + + public <T> List<T> getStuff(); + +} diff --git a/tests/bugs162/pr242797/case3/Type1.java b/tests/bugs162/pr242797/case3/Type1.java new file mode 100644 index 000000000..8d6f2ae22 --- /dev/null +++ b/tests/bugs162/pr242797/case3/Type1.java @@ -0,0 +1,8 @@ + +/* + * Created on Aug 19, 2008 + */ + +public interface Type1 { + +} diff --git a/tests/bugs162/pr242797/case3/Type2.java b/tests/bugs162/pr242797/case3/Type2.java new file mode 100644 index 000000000..4e13f36a7 --- /dev/null +++ b/tests/bugs162/pr242797/case3/Type2.java @@ -0,0 +1,8 @@ + +/* + * Created on Aug 19, 2008 + */ + +public class Type2 implements Type1 { + +} |