Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0591111F98 for ; Tue, 26 Aug 2014 17:57:58 +0000 (UTC) Received: (qmail 39661 invoked by uid 500); 26 Aug 2014 17:57:57 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 39622 invoked by uid 500); 26 Aug 2014 17:57:57 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 39610 invoked by uid 99); 26 Aug 2014 17:57:57 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Aug 2014 17:57:57 +0000 Date: Tue, 26 Aug 2014 17:57:57 +0000 (UTC) From: "Romain Manni-Bucau (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-5970) review org.apache.cxf.jaxrs.provider.ProviderFactory.Message*ReaderComparator 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/CXF-5970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14111044#comment-14111044 ] Romain Manni-Bucau commented on CXF-5970: ----------------------------------------- you are right Sergey, the issue is surely linked to the fact tomee was registering JsonProvider which was conflicting then with Jackson > review org.apache.cxf.jaxrs.provider.ProviderFactory.Message*ReaderComparator > ----------------------------------------------------------------------------- > > Key: CXF-5970 > URL: https://issues.apache.org/jira/browse/CXF-5970 > Project: CXF > Issue Type: Bug > Reporter: Romain Manni-Bucau > Assignee: Sergey Beryozkin > > Actually the task can be rephrase saying rework org.apache.cxf.jaxrs.provider.ProviderFactory#*Comparators > Current implementations don't seem to have an absolute order which means sorting is not as deterministic as it should be under java >= 7. > Other point is as a user you set a List of providers (you probably already sorted if important) so you want to ensure *your* order is respected at runtime (ie org.apache.cxf.jaxrs.provider.ProviderFactory#message[Readers|Writers] respect it). > If you think this sorting is important maybe introducing in org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean and org.apache.cxf.jaxrs.provider.ProviderFactory a boolean sortProviders can be enough to prevent calling sortXXX(). -- This message was sent by Atlassian JIRA (v6.2#6252)