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

Adam Lally updated UIMA-194:
----------------------------

      Component/s:     (was: Core Java Framework)
                   Tools
                   Documentation
    Fix Version/s: 2.2
      Description: 
The XML serialization support in Sun Java 1.4.2_12 doesn't serialize CR 
characters to XML.  As a result, if the document text contains CR characters, 
XCAS or XMI serialization will cause them to be lost, resulting in incorrect 
annotation offsets.  This is exposed in the DocumentAnalyzer, with the 
highlighting being incorrect if the input document contains CR characters.

Unit test failure occurred in XCasToCasDataHandlerTest, but the test was 
modified so it passes.  In that test an assertEquals of two strings fails, yet 
the strings appear identical in the compare viewer.

The problem does not occur in Sun Java 1.5 or later, or with IBM Java.

Probably a documentation update is an appropriate way to address this.

  was:Possible newline issue?  An assertEquals of two strings fails, yet the 
strings appear identical in the compare viewer.

          Summary: Tools highlight incorrect annotation offsets due to XML 
serialization bug in Sun Java 1.4.2  (was: XCasToCasDataSaxHandlerTest gives 
failure when run under Sun Java 1.4.2)

> Tools highlight incorrect annotation offsets due to XML serialization bug in 
> Sun Java 1.4.2
> -------------------------------------------------------------------------------------------
>
>                 Key: UIMA-194
>                 URL: https://issues.apache.org/jira/browse/UIMA-194
>             Project: UIMA
>          Issue Type: Bug
>          Components: Documentation, Tools
>         Environment: Sun Java 1.4.2_12
>            Reporter: Adam Lally
>            Priority: Minor
>             Fix For: 2.2
>
>
> The XML serialization support in Sun Java 1.4.2_12 doesn't serialize CR 
> characters to XML.  As a result, if the document text contains CR characters, 
> XCAS or XMI serialization will cause them to be lost, resulting in incorrect 
> annotation offsets.  This is exposed in the DocumentAnalyzer, with the 
> highlighting being incorrect if the input document contains CR characters.
> Unit test failure occurred in XCasToCasDataHandlerTest, but the test was 
> modified so it passes.  In that test an assertEquals of two strings fails, 
> yet the strings appear identical in the compare viewer.
> The problem does not occur in Sun Java 1.5 or later, or with IBM Java.
> Probably a documentation update is an appropriate way to address this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to