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 047F5DB0F for ; Mon, 5 Nov 2012 16:10:15 +0000 (UTC) Received: (qmail 2603 invoked by uid 500); 5 Nov 2012 16:10:14 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 2423 invoked by uid 500); 5 Nov 2012 16:10:14 -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 2320 invoked by uid 99); 5 Nov 2012 16:10:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Nov 2012 16:10:14 +0000 Date: Mon, 5 Nov 2012 16:10:14 +0000 (UTC) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Message-ID: <447491453.69230.1352131814061.JavaMail.jiratomcat@arcas> In-Reply-To: <2055838232.31784.1351254312253.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (CXF-4605) SortedMap is not returned when another unrelated method exists in the interface 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-4605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13490705#comment-13490705 ] Daniel Kulp commented on CXF-4605: ---------------------------------- If using Aegis on both sides, it really won't matter as Aegis doesn't actually use the schema. The issue is if you have a client that has taken the WSDL and generated JAXWS/JAXB code based on the WSDL. With the new code, a separate type is generated for the sorted maps compared to the non-sorted (and a couple others). HOWEVER, this is likely not an issue as the schema for the old case was actually invalid. It was generating two "int2intMap" types into the schema. Two types, same name. Not valid. It would now have an int2intMap (for the non-sorted case) and an int2intSortedMap to differentiate them. > SortedMap is not returned when another unrelated method exists in the interface > ------------------------------------------------------------------------------- > > Key: CXF-4605 > URL: https://issues.apache.org/jira/browse/CXF-4605 > Project: CXF > Issue Type: Bug > Components: Aegis Databinding > Affects Versions: 2.7.0 > Environment: Debian unstable / tomcat7 / opennjdk7 > Reporter: Vassilis Virvilis > Assignee: Daniel Kulp > Fix For: 2.7.1 > > Attachments: ws-test-issue-4605.tgz > > > During testing of bug 4534 I stumbled upon the following behavior. Subsets of tests were passing when run standalone but failing when run in the full test suite. > So I have narrowed it down to one method that fails when another is uncommented in the interface. > Interface: > // uncomment this for the next method to fail > // public Map> testDirectComplexMapResult(); > // fail -- puts data into a hashmap instead of a SortedMap if the above is uncommented > public Map> testDirectComplexTreeMapResult(); > Implementation: > //@Override > public Map> testDirectComplexMapResult() { > final Map> result = new HashMap>(); > final TreeMap map1 = new TreeMap(); > map1.put(1, 3); > result.put("key1", map1); > return result; > } > @Override > public Map> testDirectComplexTreeMapResult() { > final Map> result = new HashMap>(); > final TreeMap map1 = new TreeMap(); > map1.put(1, 3); > map1.put(0, 2); > result.put("key1", map1); > return result; > } > Client: > @Test > public void testDirectComplexTreeMapResult() { > final Map map = TestServiceFactory.getService() > .testDirectComplexTreeMapResult(); > log.info(map); > for (final Object vmap : map.values()) { > Assert.assertTrue(vmap instanceof SortedMap); > } > } -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira