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

char primitive parameter doesn't get injected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 1.2.1.GA, 2.0.GA, 2.0.1.GA
    • None
    • None

      Check the method org.jboss.resteasy.util.StringToPrimitive.stringToPrimitiveBoxType(Class primitiveType, String value)
      it misses case for char primitive.
      this means that in this kind of method

      @Path("/")
      public class ParamTestResource {
      @GET
      @Path("/pathparam8/

      {var}

      ")
      public String pathparam(@PathParam("var") char var)

      { return "Received: \"" + var + "\""; }

      }

      var is always injected null value.

            weli@redhat.com Weinan Li
            mlinhard Michal Linhard (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: