-
Bug
-
Resolution: Done
-
Minor
-
2.3.3.Final
-
None
org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Unable to resolve type variable
Testcase:
public class ParameterizedSubResourceTest
{
private static Dispatcher dispatcher;
@BeforeClass
public static void before() throws Exception
@AfterClass
public static void after() throws Exception
public static interface Root
{
@Path("sub/
")
public Sub getSub(@PathParam("path") String path);
}
public static interface Sub
{ @GET @Produces("text/plain") public String get(); }public static interface InternalInterface<T extends Number>
{ @PUT void foo(T value); } @Path("/path")
public static class RootImpl implements Root
{
@Override
public SubImpl<Integer> getSub(String path)
}
public static class SubImpl<T extends Number> implements Sub, InternalInterface<T>
{
private final String path;
public SubImpl(String path)
{ this.path = path; } @Override
public String get()
@Override
public void foo(T value)
}
@Test
public void test()
{
ClientRequest request = new ClientRequest(generateURL("/path/sub/fred"));
ClientResponse<String> response = null;
try
catch (Exception e)
{ throw new RuntimeException(e); } }
}