diff --git a/common/src/test/java/io/netty/util/internal/TypeParameterMatcherTest.java b/common/src/test/java/io/netty/util/internal/TypeParameterMatcherTest.java index f9f1b62d71..97b76cfa6f 100644 --- a/common/src/test/java/io/netty/util/internal/TypeParameterMatcherTest.java +++ b/common/src/test/java/io/netty/util/internal/TypeParameterMatcherTest.java @@ -16,8 +16,11 @@ package io.netty.util.internal; +import org.junit.Ignore; import org.junit.Test; +import java.util.Date; + import static org.junit.Assert.*; public class TypeParameterMatcherTest { @@ -128,4 +131,20 @@ public class TypeParameterMatcherTest { TypeParameterMatcher m = TypeParameterMatcher.find(new V().u, U.class, "E"); assertTrue(m.match(new Object())); } + + private abstract class W { + // Noop + } + + private class X extends W { + // Noop + } + + @Ignore("Fail currently because of #1247") + @Test + public void testConcreteClassWithGeneric() throws Exception { + TypeParameterMatcher m = TypeParameterMatcher.find(new X(), W.class, "E"); + assertTrue(m.match(new Date())); + assertFalse(m.match(new Object())); + } }