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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]