axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject cvs commit: ws-axis/java/src/org/apache/axis/description TypeDesc.java
Date Tue, 26 Apr 2005 13:15:25 GMT
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);
           }
       }
   
  
  
  

Mime
View raw message