Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-4709

Support Java generic wildcard types

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.1.CR1, 7.0.1.GA
    • None
    • REST
    • None
    • Low
    • EAP 7.0.1

      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: