You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Kaloyan Spiridonov (JIRA)" <ji...@apache.org> on 2017/06/05 07:36:04 UTC
[jira] [Created] (JOHNZON-121) JsonObject.getBoolean(String name)
returns false instead of ClassCastException
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)