You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2008/02/26 23:28:57 UTC

svn commit: r631406 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisDescription.java

Author: dims
Date: Tue Feb 26 14:28:56 2008
New Revision: 631406

URL: http://svn.apache.org/viewvc?rev=631406&view=rev
Log:
Fix for build break. Real fix has to be implementing all the getKey methods properly

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisDescription.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisDescription.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisDescription.java?rev=631406&r1=631405&r2=631406&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisDescription.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/AxisDescription.java Tue Feb 26 14:28:56 2008
@@ -221,7 +221,12 @@
 
     // NOTE - These are NOT typesafe!
     public void addChild(AxisDescription child) {
-        children.put(child.getKey(), child);
+        if (child.getKey() == null) {
+        // FIXME: Several classes that extend AxisDescription pass null in their getKey method.    
+//            throw new IllegalArgumentException("Please specify a key in the child");
+        } else {
+            children.put(child.getKey(), child);
+        }
     }
 
     public void addChild(Object key, AxisDescription child) {



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org