You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2017/06/05 12:53:04 UTC
[jira] [Resolved] (JOHNZON-121) JsonObject.getBoolean(String name)
returns false instead of ClassCastException
[ https://issues.apache.org/jira/browse/JOHNZON-121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Romain Manni-Bucau resolved JOHNZON-121.
----------------------------------------
Resolution: Fixed
Assignee: Romain Manni-Bucau
Fix Version/s: 1.1.2
> 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
> Assignee: Romain Manni-Bucau
> Fix For: 1.1.2
>
>
> 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)