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 096032319 for ; Thu, 5 May 2011 06:57:07 +0000 (UTC) Received: (qmail 79589 invoked by uid 500); 5 May 2011 06:57:06 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 79539 invoked by uid 500); 5 May 2011 06:57:06 -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 79532 invoked by uid 99); 5 May 2011 06:57:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 06:57:05 +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; Thu, 05 May 2011 06:57:03 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E443A2388980; Thu, 5 May 2011 06:56:41 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r1099701 - in /cxf/branches/2.3.x-fixes: ./ tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/ tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/ Date: Thu, 05 May 2011 06:56:41 -0000 To: commits@cxf.apache.org From: ffang@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110505065641.E443A2388980@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ffang Date: Thu May 5 06:56:41 2011 New Revision: 1099701 URL: http://svn.apache.org/viewvc?rev=1099701&view=rev Log: Merged revisions 1099697 via svnmerge from https://svn.apache.org/repos/asf/cxf/trunk ........ r1099697 | ffang | 2011-05-05 14:21:56 +0800 (四, 05 5 2011) | 1 line [CXF-3491]can't refer to java.lang.Exception in gererated client/server main code ........ Modified: cxf/branches/2.3.x-fixes/ (props changed) cxf/branches/2.3.x-fixes/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/client.vm cxf/branches/2.3.x-fixes/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/server.vm cxf/branches/2.3.x-fixes/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java Propchange: cxf/branches/2.3.x-fixes/ ------------------------------------------------------------------------------ Binary property 'svnmerge-integrated' - no diff available. Modified: cxf/branches/2.3.x-fixes/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/client.vm URL: http://svn.apache.org/viewvc/cxf/branches/2.3.x-fixes/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/client.vm?rev=1099701&r1=1099700&r2=1099701&view=diff ============================================================================== --- cxf/branches/2.3.x-fixes/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/client.vm (original) +++ cxf/branches/2.3.x-fixes/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/client.vm Thu May 5 06:56:41 2011 @@ -61,7 +61,7 @@ public final class ${clientClassName} { #if ($mark-generated == "true") @Generated(value = "org.apache.cxf.tools.wsdlto.WSDLToJava", date = "$currentdate") #end - public static void main(String args[]) throws Exception { + public static void main(String args[]) throws java.lang.Exception { URL wsdlURL = ${service.Name}.WSDL_LOCATION; if (args.length > 0) { File wsdlFile = new File(args[0]); Modified: cxf/branches/2.3.x-fixes/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/server.vm URL: http://svn.apache.org/viewvc/cxf/branches/2.3.x-fixes/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/server.vm?rev=1099701&r1=1099700&r2=1099701&view=diff ============================================================================== --- cxf/branches/2.3.x-fixes/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/server.vm (original) +++ cxf/branches/2.3.x-fixes/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/server.vm Thu May 5 06:56:41 2011 @@ -37,7 +37,7 @@ public class ${serverClassName}{ #if ($mark-generated == "true") @Generated(value = "org.apache.cxf.tools.wsdlto.WSDLToJava", date = "$currentdate") #end - protected ${serverClassName}() throws Exception { + protected ${serverClassName}() throws java.lang.Exception { System.out.println("Starting Server"); Object implementor = new ${impl}(); String address = "${address}"; @@ -47,7 +47,7 @@ public class ${serverClassName}{ #if ($mark-generated == "true") @Generated(value = "org.apache.cxf.tools.wsdlto.WSDLToJava", date = "$currentdate") #end - public static void main(String args[]) throws Exception { + public static void main(String args[]) throws java.lang.Exception { new ${serverClassName}(); System.out.println("Server ready..."); Modified: cxf/branches/2.3.x-fixes/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java URL: http://svn.apache.org/viewvc/cxf/branches/2.3.x-fixes/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java?rev=1099701&r1=1099700&r2=1099701&view=diff ============================================================================== --- cxf/branches/2.3.x-fixes/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java (original) +++ cxf/branches/2.3.x-fixes/tools/wsdlto/test/src/test/java/org/apache/cxf/tools/wsdlto/jaxws/CodeGenBugTest.java Thu May 5 06:56:41 2011 @@ -1179,8 +1179,9 @@ public class CodeGenBugTest extends Abst } @Test - public void testCXF3353() throws Exception { + public void testCXF3353andCXF3491() throws Exception { try { + env.put(ToolConstants.CFG_ALL, "all"); env.put(ToolConstants.CFG_COMPILE, "compile"); env.put(ToolConstants.CFG_OUTPUTDIR, output.getCanonicalPath()); env.put(ToolConstants.CFG_CLASSDIR, output.getCanonicalPath() + "/classes");