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 2003/12/02 06:03:50 UTC

cvs commit: ws-axis/java/test/wsdl/gateway MyClass.java

dims        2003/12/01 21:03:50

  Modified:    java/src/org/apache/axis/encoding/ser BeanDeserializer.java
               java/test/wsdl/gateway MyClass.java
  Log:
  Fix and test case for Bug 14033 - bean property multi-dimensional arrays don't deserialize
  
  Fix was sent by  Sakari Str?mmer (sstromme@cc.hut.fi)
  
  Revision  Changes    Path
  1.61      +3 -1      ws-axis/java/src/org/apache/axis/encoding/ser/BeanDeserializer.java
  
  Index: BeanDeserializer.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/encoding/ser/BeanDeserializer.java,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- BeanDeserializer.java	18 Jun 2003 23:01:50 -0000	1.60
  +++ BeanDeserializer.java	2 Dec 2003 05:03:50 -0000	1.61
  @@ -302,7 +302,9 @@
               // In this case, we want to use the collectionIndex and make sure
               // the deserialized value for the child element goes into the
               // right place in the collection.
  -            if (propDesc.isIndexed() && !(dSer instanceof ArrayDeserializer)) {
  +            if (propDesc.isIndexed() && (
  +                    !(dSer instanceof ArrayDeserializer) || 
  +                    propDesc.getType().isArray())) {
                       collectionIndex++;
                       dSer.registerValueTarget(new BeanPropertyTarget(value,
                                                       propDesc, collectionIndex));
  
  
  
  1.2       +1 -9      ws-axis/java/test/wsdl/gateway/MyClass.java
  
  Index: MyClass.java
  ===================================================================
  RCS file: /home/cvs/ws-axis/java/test/wsdl/gateway/MyClass.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- MyClass.java	1 Dec 2002 18:53:45 -0000	1.1
  +++ MyClass.java	2 Dec 2003 05:03:50 -0000	1.2
  @@ -1,16 +1,8 @@
   package test.wsdl.gateway;
   
   /**
  - * To recreate the Bug 14033 - bean property multi-dimensional arrays don't deserialize
  - * problem, just comment out the getValues and setValues methods
  + * Test for Bug 14033 - bean property multi-dimensional arrays don't deserialize
    */ 
   public class MyClass {
   	public String[][] Values;
  -
  -	public String[][] getValues() {
  -		return Values;
  -	}
  -	public void setValues(String[][] values) {
  -		Values=values;
  -	}
   }