johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (JOHNZON-121) JsonObject.getBoolean(String name) returns false instead of ClassCastException
Date Mon, 05 Jun 2017 12:53:04 GMT

     [ 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)

Mime
View raw message