Uploaded image for project: 'Johnzon'
  1. Johnzon
  2. JOHNZON-121

JsonObject.getBoolean(String name) returns false instead of ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.1.2
    • Core
    • None

    Description

      JsonObject.getBoolean(String name) returns false instead of ClassCastException.

      According to javadoc for JsonObject.getBoolean(String name) (http://docs.oracle.com/javaee/7/api/javax/json/JsonObject.html#getBoolean-java.lang.String-) :

      If the value for specified name mapping is not assignable to JsonValue.TRUE or JsonValue.FALSE, ClassCastException should be thrown.

      Example: https://github.com/kal0ian/Examples

      Attachments

        Activity

          People

            romain.manni-bucau Romain Manni-Bucau
            kal0ian Kaloyan Spiridonov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: