Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2401

JAX-RS code doesn't have enough visibility into parameterized types to work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3
    • 2.2.4
    • JAX-RS
    • None

    Description

      org.apache.cxf.jaxrs.provider.AegisJSONProviderTest.testWriteCollection() will explode if you un-ignore it. Why?

      org.apache.cxf.jaxrs.provider.AegisElementProvider.createStreamWriter(Class<?>, OutputStream) is called with a Class, but it needs a full java.lang.reflect.Type to work right. org.apache.cxf.jaxrs.provider.AegisJSONProvider.createStreamWriter(Class<?>, OutputStream) wants to map the type to a QName, and that won't work for generic types and collections from a plain class.

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            bmargulies Benson Margulies
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: