Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3B8679AE3 for ; Wed, 29 Feb 2012 10:23:01 +0000 (UTC) Received: (qmail 33856 invoked by uid 500); 29 Feb 2012 10:23:01 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 33806 invoked by uid 500); 29 Feb 2012 10:23:01 -0000 Mailing-List: contact commits-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 commits@cxf.apache.org Received: (qmail 33798 invoked by uid 99); 29 Feb 2012 10:23:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Feb 2012 10:23:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Feb 2012 10:22:59 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B347B23888FD; Wed, 29 Feb 2012 10:22:39 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1295054 - in /cxf/branches/2.4.x-fixes: ./ rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/ Date: Wed, 29 Feb 2012 10:22:39 -0000 To: commits@cxf.apache.org From: ema@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120229102239.B347B23888FD@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ema Date: Wed Feb 29 10:22:39 2012 New Revision: 1295054 URL: http://svn.apache.org/viewvc?rev=1295054&view=rev Log: Merged revisions 1295052 via svnmerge from https://svn.apache.org/repos/asf/cxf/branches/2.5.x-fixes ................ r1295052 | ema | 2012-02-29 18:07:21 +0800 (Wed, 29 Feb 2012) | 9 lines Merged revisions 1295026 via svnmerge from https://svn.apache.org/repos/asf/cxf/trunk ........ r1295026 | ema | 2012-02-29 17:17:24 +0800 (Wed, 29 Feb 2012) | 1 line [CXF-4147]:Wrong wsdl generated from impl class annotated with BARE ........ ................ Added: cxf/branches/2.4.x-fixes/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/HelloBare.java - copied unchanged from r1295052, cxf/branches/2.5.x-fixes/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/HelloBare.java Modified: cxf/branches/2.4.x-fixes/ (props changed) cxf/branches/2.4.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java cxf/branches/2.4.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SimpleMessages.properties cxf/branches/2.4.x-fixes/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessorTest.java Propchange: cxf/branches/2.4.x-fixes/ ------------------------------------------------------------------------------ --- svn:mergeinfo (added) +++ svn:mergeinfo Wed Feb 29 10:22:39 2012 @@ -0,0 +1,2 @@ +/cxf/branches/2.5.x-fixes:1295052 +/cxf/trunk:1295026 Propchange: cxf/branches/2.4.x-fixes/ ------------------------------------------------------------------------------ Binary property 'svnmerge-integrated' - no diff available. Modified: cxf/branches/2.4.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java URL: http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java?rev=1295054&r1=1295053&r2=1295054&view=diff ============================================================================== --- cxf/branches/2.4.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java (original) +++ cxf/branches/2.4.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java Wed Feb 29 10:22:39 2012 @@ -1457,8 +1457,15 @@ public class ReflectionServiceFactoryBea continue; } if (isInParam(method, j)) { - final QName q = getInParameterName(op, method, j); - MessagePartInfo part = inMsg.addMessagePart(getInPartName(op, method, j)); + QName q = getInParameterName(op, method, j); + QName partName = getInPartName(op, method, j); + if (!isRPC(method) && !isWrapped(method) + && inMsg.getMessagePartsMap().containsKey(partName)) { + LOG.log(Level.WARNING, "INVALID_BARE_METHOD", getServiceClass() + "." + method.getName()); + partName = new QName(partName.getNamespaceURI(), partName.getLocalPart() + j); + q = new QName(q.getNamespaceURI(), q.getLocalPart() + j); + } + MessagePartInfo part = inMsg.addMessagePart(partName); Modified: cxf/branches/2.4.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SimpleMessages.properties URL: http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SimpleMessages.properties?rev=1295054&r1=1295053&r2=1295054&view=diff ============================================================================== --- cxf/branches/2.4.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SimpleMessages.properties (original) +++ cxf/branches/2.4.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SimpleMessages.properties Wed Feb 29 10:22:39 2012 @@ -35,3 +35,4 @@ XSD_VALIDATION_ERROR= Error in W3C XML S COULD_NOT_UNWRAP=Could not unwrap Operation {0} to match method "{1}" NO_WSDL_PROVIDED=WSDL is required for services created from class {0}, but no WSDL location specified. NO_FAULT_PART = Could not find a fault part for {0}. The fault message must have a single part. +INVALID_BARE_METHOD= Method {0} is configured as BARE but there are more than one parameters with wrong @Webparam annotated or without @WebParam annotated. Modified: cxf/branches/2.4.x-fixes/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessorTest.java URL: http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessorTest.java?rev=1295054&r1=1295053&r2=1295054&view=diff ============================================================================== --- cxf/branches/2.4.x-fixes/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessorTest.java (original) +++ cxf/branches/2.4.x-fixes/tools/javato/ws/src/test/java/org/apache/cxf/tools/java2wsdl/processor/JavaToProcessorTest.java Wed Feb 29 10:22:39 2012 @@ -678,4 +678,25 @@ public class JavaToProcessorTest extends assertTrue(wsdlContent.indexOf("