Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1330

Support Java generic wildcard types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 3.0.16.Final
    • jaxrs
    • None
    • Low

      Currently generic wildcard types not supported, i.e.

      @Path("/test")
      @Produces(MediaType.APPLICATION_JSON)
      List<? extends TestObject> getTestObjects();
      

      throws:

      java.lang.RuntimeException: RESTEASY003865: Unable to determine base class from Type
      	at org.jboss.resteasy.util.Types.getRawType(Types.java:223)
      	at org.jboss.resteasy.util.Types.getCollectionBaseType(Types.java:271)
      .....
      

              weli@redhat.com Weinan Li
              vmayorov Vyacheslav Mayorov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: