The EncapsulatioStream byte order was not properly set in constructor, resulting problems if the remote part must receive the remote object reference, encoded in the Little Endian (java uses Big Endian everywhere).

2006-04-09  Audrius Meskauskas  <[EMAIL PROTECTED]>

   * gnu/CORBA/CDR/EncapsulationStream.java (constructor):
   Set the byte order.
Index: EncapsulationStream.java
===================================================================
RCS file: /sources/classpath/classpath/gnu/CORBA/CDR/EncapsulationStream.java,v
retrieving revision 1.1
diff -u -r1.1 EncapsulationStream.java
--- EncapsulationStream.java	28 Oct 2005 13:01:50 -0000	1.1
+++ EncapsulationStream.java	9 Apr 2006 14:22:18 -0000
@@ -79,6 +79,7 @@
                             boolean use_big_endian)
   {
     super();
+    setBigEndian(use_big_endian);
     buffer = new AligningOutput();
     setOutputStream(buffer);
     parent = _parent;

Reply via email to