johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kaloyan Spiridonov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (JOHNZON-121) JsonObject.getBoolean(String name) returns false instead of ClassCastException
Date Mon, 05 Jun 2017 07:36:04 GMT
Kaloyan Spiridonov created JOHNZON-121:
------------------------------------------

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

                 Key: JOHNZON-121
                 URL: https://issues.apache.org/jira/browse/JOHNZON-121
             Project: Johnzon
          Issue Type: Bug
          Components: Core
            Reporter: Kaloyan Spiridonov


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-])
:

{quote}
If the value for specified name mapping is not assignable to JsonValue.TRUE or JsonValue.FALSE,
ClassCastException should be thrown.
{quote}
Example: [https://github.com/kal0ian/Examples]



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message