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

Add support of Optional types in BeanParams

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 4.6.0.Final
    • 4.5.8.Final
    • jaxrs
    • None
    • Undefined

      While migrating my code from Dropwizard/Jersey to Quarkus/Resteasy, I realized that the support of Optional types is actually partial. Indeed, if we try to inject an optional type into a BeanParam, we end up with an error of type:

      RESTEASY003875: Unable to find a constructor that takes a String param or a valueOf() or fromString() method for javax.ws.rs.QueryParam("valueQ1") on java.util.Optional ...

              weli@redhat.com Weinan Li
              essobedo-1 Nicolas Filotto (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: