Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7059

ClientImpl.getBooleanValue() will return null for String values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.7
    • 3.1.8, 3.0.11, 3.2.0
    • JAX-RS
    • None
    • Novice

    Description

      The getBooleanValue(Object o) method looks like this:

      private static Boolean getBooleanValue(Object o)

      { return o instanceof Boolean ? (Boolean)o : o instanceof Boolean ? Boolean.valueOf(o.toString()) : null; }

      If o is not an instance of Boolean, it checks to see if it is a Boolean again. Instead, it should get to see if it is an instance of String like the getIntValue method:

      private static Integer getIntValue(Object o)

      { return o instanceof Integer ? (Integer)o : o instanceof String ? Integer.valueOf(o.toString()) : null; }

      Attachments

        Issue Links

          Activity

            People

              coheigea Colm O hEigeartaigh
              andymc Andrew J McMurry
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified