Uploaded image for project: 'Johnzon'
  1. Johnzon
  2. JOHNZON-111

readObject throws ClassCastException if json array is passed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.9.5
    • 1.1.0
    • Core
    • None

    Description

      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

      Attachments

        Activity

          People

            romain.manni-bucau Romain Manni-Bucau
            vivodamichele@hotmail.com Michele Vivoda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: