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

Add support of Optional types in BeanParams

    XMLWordPrintable

Details

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

    Description

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

      Attachments

        Issue Links

          Activity

            People

              weinanli Weinan Li
              essobedo-1 Nicolas Filotto (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: