Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlyn Normington2012-11-22 12:51:15 +0000
committerGlyn Normington2012-11-22 12:51:15 +0000
commit7e0ca943fcae8c3cbf8f3335634f58c8efff0b2f (patch)
tree4a316e5fdc1d868c23f4efbbb1ac0d9b9ca7f8b1
parent4069a56c328c3d98c2e5c53cfea93d3dc6ea77ae (diff)
downloadorg.eclipse.gemini.blueprint-7e0ca943fcae8c3cbf8f3335634f58c8efff0b2f.tar.gz
org.eclipse.gemini.blueprint-7e0ca943fcae8c3cbf8f3335634f58c8efff0b2f.tar.xz
org.eclipse.gemini.blueprint-7e0ca943fcae8c3cbf8f3335634f58c8efff0b2f.zip
test complex but realistic case
-rw-r--r--core/src/test/java/org/eclipse/gemini/blueprint/blueprint/container/TypeFactoryTest.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/test/java/org/eclipse/gemini/blueprint/blueprint/container/TypeFactoryTest.java b/core/src/test/java/org/eclipse/gemini/blueprint/blueprint/container/TypeFactoryTest.java
index 0afa727..0384400 100644
--- a/core/src/test/java/org/eclipse/gemini/blueprint/blueprint/container/TypeFactoryTest.java
+++ b/core/src/test/java/org/eclipse/gemini/blueprint/blueprint/container/TypeFactoryTest.java
@@ -103,6 +103,9 @@ public class TypeFactoryTest {
private static class MutuallyRecursiveGenericType<T extends Comparable<U>, U extends Comparable<T>> {
// Must T always equal U?
}
+
+ private static class ComplexRecursiveGenericType<T extends Comparable<? super T>> {
+ }
@Test
public void testJdk4Classes() throws Exception {
@@ -270,6 +273,11 @@ public class TypeFactoryTest {
assertNotNull(TypeFactory.getType(TypeDescriptor.valueOf(MutuallyRecursiveGenericType.class)));
}
+ @Test
+ public void testComplexRecursiveGenericType() throws Exception {
+ assertNotNull(TypeFactory.getType(TypeDescriptor.valueOf(ComplexRecursiveGenericType.class)));
+ }
+
private ReifiedType getReifiedTypeFor(String methodName) {
Method mt = BeanUtils.findDeclaredMethodWithMinimalParameters(TestSet.class, methodName);
TypeDescriptor td = new TypeDescriptor(new MethodParameter(mt, 0));

Back to the top