# HG changeset patch # User msheppar # Date 1436893390 -3600 # Node ID 6518e1969ae18205cebe85e7d9f2264d0c8eedf1 # Parent e334f8704edd31932c08330643d036ca339e3420 8076387: Better CORBA value handling Reviewed-by: rriggs, coffeys, skoivu, ahgross diff -r e334f8704edd -r 6518e1969ae1 src/share/classes/com/sun/corba/se/impl/io/IIOPInputStream.java --- a/src/share/classes/com/sun/corba/se/impl/io/IIOPInputStream.java Thu Jun 25 13:56:20 2015 +0100 +++ b/src/share/classes/com/sun/corba/se/impl/io/IIOPInputStream.java Tue Jul 14 18:03:10 2015 +0100 @@ -1063,6 +1063,9 @@ int spBase = spClass; // current top of stack + if (currentClass.getName().equals("java.lang.String")) { + return this.readUTF(); + } /* The object's classes should be processed from supertype to subtype * Push all the clases of the current object onto a stack. * Note that only the serializable classes are represented diff -r e334f8704edd -r 6518e1969ae1 src/share/classes/com/sun/corba/se/impl/io/IIOPOutputStream.java --- a/src/share/classes/com/sun/corba/se/impl/io/IIOPOutputStream.java Thu Jun 25 13:56:20 2015 +0100 +++ b/src/share/classes/com/sun/corba/se/impl/io/IIOPOutputStream.java Tue Jul 14 18:03:10 2015 +0100 @@ -559,6 +559,10 @@ * Push all the clases of the current object onto a stack. * Remember the stack pointer where this set of classes is being pushed. */ + if (currentClassDesc.forClass().getName().equals("java.lang.String")) { + this.writeUTF((String)obj); + return; + } int stackMark = classDescStack.size(); try { ObjectStreamClass next;