Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-4939

char primitive parameter doesn't get injected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • TBD EAP 5
    • EAP_EWP 5.1.0
    • RESTEasy
    • None

    Description

      copy of https://jira.jboss.org/browse/RESTEASY-439

      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.

      Attachments

        Issue Links

          Activity

            People

              rdickens_jira Russell Dickenson (Inactive)
              mlinhard Michal Linhard (Inactive)
              Russell Dickenson Russell Dickenson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: