cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1163786 - in /cxf/trunk/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba: runtime/CorbaObjectReader.java types/CorbaPrimitiveTypeEventProducer.java
Date Wed, 31 Aug 2011 20:15:18 GMT
Author: dkulp
Date: Wed Aug 31 20:15:18 2011
New Revision: 1163786

URL: http://svn.apache.org/viewvc?rev=1163786&view=rev
Log:
[CXF-2952] When reading a bound sequence, stop reading once the last one
is read off the wire and truncate the list/array down to the number
actually sent.

Modified:
    cxf/trunk/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaObjectReader.java
    cxf/trunk/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaPrimitiveTypeEventProducer.java

Modified: cxf/trunk/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaObjectReader.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaObjectReader.java?rev=1163786&r1=1163785&r2=1163786&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaObjectReader.java
(original)
+++ cxf/trunk/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaObjectReader.java
Wed Aug 31 20:15:18 2011
@@ -551,6 +551,7 @@ public class CorbaObjectReader {
                 for (int i = 0; i < length; ++i) {
                     read(seqElements.get(i));
                 }
+                sequenceObj.setElements(seqElements.subList(0, length));
             }
         }
     }

Modified: cxf/trunk/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaPrimitiveTypeEventProducer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaPrimitiveTypeEventProducer.java?rev=1163786&r1=1163785&r2=1163786&view=diff
==============================================================================
--- cxf/trunk/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaPrimitiveTypeEventProducer.java
(original)
+++ cxf/trunk/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/types/CorbaPrimitiveTypeEventProducer.java
Wed Aug 31 20:15:18 2011
@@ -42,7 +42,11 @@ public class CorbaPrimitiveTypeEventProd
     }
 
     public String getText() {
-        return handler.getDataFromValue();
+        String s = handler.getDataFromValue();
+        if (s == null) {
+            return "";
+        }
+        return s;
     }
 
     public int next() {



Mime
View raw message