cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1516735 - /cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBSchemaInitializer.java
Date Fri, 23 Aug 2013 08:14:28 GMT
Author: ema
Date: Fri Aug 23 08:14:28 2013
New Revision: 1516735

URL: http://svn.apache.org/r1516735
Log:
[CXF-5230]:Message element is not generated for exception class which extends Exception

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

Modified: cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBSchemaInitializer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBSchemaInitializer.java?rev=1516735&r1=1516734&r2=1516735&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBSchemaInitializer.java
(original)
+++ cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBSchemaInitializer.java
Fri Aug 23 08:14:28 2013
@@ -569,7 +569,7 @@ class JAXBSchemaInitializer extends Serv
             }
         }
         // Create element in xsd:sequence for Exception.class
-        if (cls.equals(Exception.class)) {
+        if (Exception.class.isAssignableFrom(cls)) {
             JAXBBeanInfo beanInfo = getBeanInfo(java.lang.String.class);
             XmlSchemaElement exEle = new XmlSchemaElement(schema, false);
             exEle.setName("message");



Mime
View raw message