cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: r564087 - in /incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws: generators/FaultGenerator.java template/fault.vm
Date Thu, 09 Aug 2007 05:35:09 GMT
Author: mmao
Date: Wed Aug  8 22:35:07 2007
New Revision: 564087

URL: http://svn.apache.org/viewvc?view=rev&rev=564087
Log:
CXF-900 Add serialVersionUID into FaultBeans


Modified:
    incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/FaultGenerator.java
    incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/fault.vm

Modified: incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/FaultGenerator.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/FaultGenerator.java?view=diff&rev=564087&r1=564086&r2=564087
==============================================================================
--- incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/FaultGenerator.java
(original)
+++ incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/generators/FaultGenerator.java
Wed Aug  8 22:35:07 2007
@@ -19,6 +19,8 @@
 
 package org.apache.cxf.tools.wsdlto.frontend.jaxws.generators;
 
+import java.text.SimpleDateFormat;
+import java.util.Date;
 import java.util.Iterator;
 import java.util.Map;
 
@@ -74,6 +76,7 @@
                 exceptionClasses.get(expClassName);
 
             clearAttributes();
+            setAttributes("suid", getSUID());
             setAttributes("expClass", expClz);
             for (JavaField jf : expClz.getFields()) {
                 setAttributes("paraName", ProcessorUtil.mangleNameToVariableName(jf.getName()));
@@ -82,5 +85,9 @@
             doWrite(FAULT_TEMPLATE, parseOutputName(expClz.getPackageName(),
                     expClz.getName()));
         }
+    }
+
+    private String getSUID() {
+        return new SimpleDateFormat("yyyyMMddHHmmss").format(new Date());
     }
 }

Modified: incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/fault.vm
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/fault.vm?view=diff&rev=564087&r1=564086&r2=564087
==============================================================================
--- incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/fault.vm
(original)
+++ incubator/cxf/trunk/tools/wsdlto/frontend/jaxws/src/main/java/org/apache/cxf/tools/wsdlto/frontend/jaxws/template/fault.vm
Wed Aug  8 22:35:07 2007
@@ -32,6 +32,7 @@
 #end
 
 public class $expClass.Name extends Exception {
+    public static final long serialVersionUID = ${suid}L;
 #foreach ($field in $expClass.Fields)
     
     $field.Modifier $field.ClassName $paraName;



Mime
View raw message