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

Default value for Collections passed-in with @QueryParam should be an empty collection instead of null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0-beta-3
    • 2.0-beta-2
    • jaxrs
    • None

      Given this method:

      @GET
      public String getString(@QueryParam("q") List<String> queries) {
      return "";
      }

      As per the @DefaultValue documentation, the value of "queries" when no "q" parameter is present on the URI should be an empty collection. In 2.0-beta-2, this is currently null.

            patriot1burke@gmail.com Bill Burke (Inactive)
            plaflamme Philippe Laflamme (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: