From dev-return-35849-apmail-uima-dev-archive=uima.apache.org@uima.apache.org Fri Nov 4 21:41:59 2016 Return-Path: X-Original-To: apmail-uima-dev-archive@www.apache.org Delivered-To: apmail-uima-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B2E7419DB9 for ; Fri, 4 Nov 2016 21:41:59 +0000 (UTC) Received: (qmail 38469 invoked by uid 500); 4 Nov 2016 21:41:59 -0000 Delivered-To: apmail-uima-dev-archive@uima.apache.org Received: (qmail 38435 invoked by uid 500); 4 Nov 2016 21:41:59 -0000 Mailing-List: contact dev-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@uima.apache.org Delivered-To: mailing list dev@uima.apache.org Received: (qmail 37919 invoked by uid 99); 4 Nov 2016 21:41:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Nov 2016 21:41:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5BBF02C0005 for ; Fri, 4 Nov 2016 21:41:58 +0000 (UTC) Date: Fri, 4 Nov 2016 21:41:58 +0000 (UTC) From: "Marshall Schor (JIRA)" To: dev@uima.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (UIMA-5171) JSON serialization in uima core wrong context, sometimes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/UIMA-5171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marshall Schor resolved UIMA-5171. ---------------------------------- Resolution: Fixed > 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)