cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1167282 - /cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/BusDefinitionParser.java
Date Fri, 09 Sep 2011 16:39:40 GMT
Author: dkulp
Date: Fri Sep  9 16:39:39 2011
New Revision: 1167282

URL: http://svn.apache.org/viewvc?rev=1167282&view=rev
Log:
Make sure we remove the name attribute as this really confuses spring.

Modified:
    cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/BusDefinitionParser.java

Modified: cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/BusDefinitionParser.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/BusDefinitionParser.java?rev=1167282&r1=1167281&r2=1167282&view=diff
==============================================================================
--- cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/BusDefinitionParser.java (original)
+++ cxf/trunk/rt/core/src/main/java/org/apache/cxf/bus/spring/BusDefinitionParser.java Fri
Sep  9 16:39:39 2011
@@ -56,9 +56,9 @@ public class BusDefinitionParser extends
             bus = element.getAttribute("name");
             if (StringUtils.isEmpty(bus)) {
                 element.setAttribute("bus", bus);
-                element.removeAttribute("name");
             }
         }
+        element.removeAttribute("name");
         if (StringUtils.isEmpty(bus)) {
             addBusWiringAttribute(bean, BusWiringType.PROPERTY);
         } else {



Mime
View raw message