Marshall Schor created UIMA-5171: ------------------------------------ Summary: JSON serialization in uima core wrong context, sometimes Key: UIMA-5171 URL: https://issues.apache.org/jira/browse/UIMA-5171 Project: UIMA Issue Type: Bug Components: Core Java Framework Affects Versions: 2.9.0SDK Reporter: Marshall Schor Assignee: Marshall Schor Fix For: 3.0.0SDKexp, 2.9.1SDK
Running json test in v3 revealed two bugs in the JSON serialization. 1) reset the cache in "sortedUsedTypes" when starting serailization because this may have changed (in CasSerializerSupport) 2) Also in CasSerializerSupport - make the static Comparator used for sorting types used, public, so it can be used by the JSON serializer code when doing a binary search to see if a type is present. 3) Change the code in JsonCasSerializer which does the binary search to use this same comparator, because the search must use the same sort ordering. -- This message was sent by Atlassian JIRA (v6.3.4#6332)