Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-4015

logic hole in obscure case in MetaDataObject_impl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.6.0SDK
    • 2.7.0SDK
    • Core Java Framework
    • None

    Description

      While reviewing the changes in MetaDataObject_impl, I noticed a path in writePrimitiveValue, which wraps the primitive value with an "element-kind", like <element-kind>value</element-kind>. For JSON serialization, this is

      { "element-kind" : value }

      . But for JSON this wrapping is not done if the value is a string. There's a logic bug in this case (which may not occur in practice?) - the skipping of the writing of the closing } is not done, needs fixing.

      Attachments

        Activity

          People

            schor Marshall Schor
            schor Marshall Schor
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: