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

Support Java generic wildcard types

    XMLWordPrintable

Details

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

    Description

      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)
      .....
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: