cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1438104 - /cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java
Date Thu, 24 Jan 2013 17:47:35 GMT
Author: dkulp
Date: Thu Jan 24 17:47:34 2013
New Revision: 1438104

URL: http://svn.apache.org/viewvc?rev=1438104&view=rev
Log:
[CXF-4748] Add getMessage to generated schemas for exceptions to match RI and spec
Patch from Iris Ding applied

Modified:
    cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java

Modified: cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java?rev=1438104&r1=1438103&r2=1438104&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java
(original)
+++ cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBContextInitializer.java
Thu Jan 24 17:47:34 2013
@@ -390,7 +390,8 @@ class JAXBContextInitializer extends Ser
         // must not have parameters and return type must not be void
         if (method.getReturnType() == Void.class 
             || method.getParameterTypes().length != 0
-            || method.getDeclaringClass().equals(Throwable.class)
+            || (method.getDeclaringClass().equals(Throwable.class)
+            && !("getMessage".equals(method.getName())))
             || !(method.getName().startsWith("get")
                     || method.getName().startsWith("is"))) {
             return false;



Mime
View raw message