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-111) readObject throws ClassCastException if json array is passed
Date Mon, 27 Mar 2017 07:13:42 GMT

     [ https://issues.apache.org/jira/browse/JOHNZON-111?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Romain Manni-Bucau resolved JOHNZON-111.
----------------------------------------
       Resolution: Fixed
         Assignee: Romain Manni-Bucau
    Fix Version/s: 1.1.0

Thanks Michele! Fixed

> readObject throws ClassCastException if json array is passed
> ------------------------------------------------------------
>
>                 Key: JOHNZON-111
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-111
>             Project: Johnzon
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 0.9.5
>            Reporter: Michele Vivoda
>            Assignee: Romain Manni-Bucau
>            Priority: Trivial
>             Fix For: 1.1.0
>
>
> the javax.json.JsonReader.readObject() method implementation in org.apache.johnzon.core.JsonReaderImpl.readObject()
throws ClassCastException if a json array like "[]" is passed to it, instead it should throw
JsonParsingException if the JsonStructure returned by org.apache.johnzon.core.JsonReaderImpl.read()
is not a JsonObject



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

Mime
View raw message