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 97b76cfa6f..8cd6180903 100644 --- a/common/src/test/java/io/netty/util/internal/TypeParameterMatcherTest.java +++ b/common/src/test/java/io/netty/util/internal/TypeParameterMatcherTest.java @@ -16,7 +16,6 @@ package io.netty.util.internal; -import org.junit.Ignore; import org.junit.Test; import java.util.Date; @@ -132,17 +131,16 @@ public class TypeParameterMatcherTest { assertTrue(m.match(new Object())); } - private abstract class W { - // Noop + private static abstract class W { + E e; } - private class X extends W { - // Noop + private static class X extends W { + T t; } - @Ignore("Fail currently because of #1247") - @Test - public void testConcreteClassWithGeneric() throws Exception { + @Test(expected = IllegalStateException.class) + public void testErasure() throws Exception { TypeParameterMatcher m = TypeParameterMatcher.find(new X(), W.class, "E"); assertTrue(m.match(new Date())); assertFalse(m.match(new Object()));