You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2005/04/26 15:15:25 UTC
cvs commit: ws-axis/java/src/org/apache/axis/description TypeDesc.java
dims 2005/04/26 06:15:25
Modified: java/src/org/apache/axis/description TypeDesc.java
Log:
Patch from gdamour (geronimo)
Notes:
- AttributeDesc were not properly registered by the fieldNameMap Map when setFields was used.
- This mirrors the TypeDesc.addFieldDesc() method behavior.
Revision Changes Path
1.43 +2 -3 ws-axis/java/src/org/apache/axis/description/TypeDesc.java
Index: TypeDesc.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/description/TypeDesc.java,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- TypeDesc.java 1 Dec 2004 23:14:09 -0000 1.42
+++ TypeDesc.java 26 Apr 2005 13:15:25 -0000 1.43
@@ -210,11 +210,10 @@
for (int i = 0; i < newFields.length; i++) {
FieldDesc field = newFields[i];
- if (field.isElement()) {
- fieldNameMap.put(field.getFieldName(), field);
- } else {
+ if (!field.isElement()) {
_hasAttributes = true;
}
+ fieldNameMap.put(field.getFieldName(), field);
}
}