incubator-yoko-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickmcgu...@apache.org
Subject svn commit: r485623 - /incubator/yoko/trunk/rmi-impl/src/main/java/org/apache/yoko/rmi/impl/IDLEntityDescriptor.java
Date Mon, 11 Dec 2006 11:40:26 GMT
Author: rickmcguire
Date: Mon Dec 11 03:40:25 2006
New Revision: 485623

URL: http://svn.apache.org/viewvc?view=rev&rev=485623
Log:
YOKO-237 RMI method calls not marshaling IDLEntity types correctly.


Modified:
    incubator/yoko/trunk/rmi-impl/src/main/java/org/apache/yoko/rmi/impl/IDLEntityDescriptor.java

Modified: incubator/yoko/trunk/rmi-impl/src/main/java/org/apache/yoko/rmi/impl/IDLEntityDescriptor.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/rmi-impl/src/main/java/org/apache/yoko/rmi/impl/IDLEntityDescriptor.java?view=diff&rev=485623&r1=485622&r2=485623
==============================================================================
--- incubator/yoko/trunk/rmi-impl/src/main/java/org/apache/yoko/rmi/impl/IDLEntityDescriptor.java
(original)
+++ incubator/yoko/trunk/rmi-impl/src/main/java/org/apache/yoko/rmi/impl/IDLEntityDescriptor.java
Mon Dec 11 03:40:25 2006
@@ -100,7 +100,12 @@
 
     /** Read an instance of this value from a CDR stream */
     public Object read(org.omg.CORBA.portable.InputStream in) {
-        return readValue(in);
+        org.omg.CORBA_2_3.portable.InputStream _in = (org.omg.CORBA_2_3.portable.InputStream)
in;
+
+        // we directly call read_value() on the stream here, with the explicitly specified
+        // repository ID.  The input stream will handle validating the value tag for us,
and eventually
+        // will call our readValue() method to deserialize the object.
+        return _in.read_value(getRepositoryID());
     }
 
     public java.io.Serializable readValue(
@@ -130,7 +135,12 @@
 
     /** Write an instance of this value to a CDR stream */
     public void write(org.omg.CORBA.portable.OutputStream out, Object val) {
-        writeValue(out, val);
+        org.omg.CORBA_2_3.portable.OutputStream _out = (org.omg.CORBA_2_3.portable.OutputStream)
out;
+
+        // we directly call write_value() on the stream here, with the explicitly specified
+        // repository ID.  the output stream will handle writing the value tag for us, and
eventually
+        // will call our writeValue() method to serialize the object.
+        _out.write_value((java.io.Serializable)val, getRepositoryID());
     }
 
     public void writeValue(org.omg.CORBA.portable.OutputStream out, Object val) {



Mime
View raw message