I2JAV 1.1 NO IDEA Avatar
  1. OMG Issue

I2JAV11 — Custom marshal does not work for certain valuetypes

  • Key: I2JAV11-20
  • Legacy Issue Number: 3575
  • Status: closed  
  • Source: Borland Software Corporation ( Vijaykumar Natarajan)
  • Summary:

    This was discussed in the core rtf in boston, and the consensus was that this
    would be a java only issue and could be fixed in the language mapping directly.

    The issue:
    Boxed valuetypes, abstract interfaces and regular valuetypes (these can be
    marshaled but not in optimized format) cannot be marshaled or unmarshaled when
    using custom marshaling. This is because the Data*Stream APIs do not provide the
    requisite interfaces.

    Proposal:

    Add two new interfaces in java defined as follows
    package org.omg.CORBA;

    public interface CustomOutputStream extends org.omg.CORBA.DataOutputStream

    { public void write_Value(java.io.Serializable value, java.lang.String repId); // optimized valuetype writes public void write_Value(java.io.Serializable value, org.omg.CORBA.portable.BoxedValueHelper helper); //boxed valuetypes public void write_Abstract(java.lang.Object obj); // abstract interfaces }

    public interface CustomInputStream extends org.omg.CORBA.DataInputStream

    { public java.io.Serializable read_value(java.lang.String repId); // optimized valuetype reads public java.io.Serializable read_value(java.lang.Class expected); // Is this needed??? public java.lang.Object read_abstract_interface(); // abstract interfaces public java.lang.Object read_abstract_interface(java.lang.Class expected); // Is this needed??? public java.io.Serializable read_value(org.omg.CORBA.portable.BoxedValueHelper helper); // boxed valuetypes }
  • Reported: I2JAV 1.0 — Thu, 20 Apr 2000 04:00 GMT
  • Disposition: Resolved — I2JAV 1.1
  • Disposition Summary:

    resolved, see below

  • Updated: Fri, 6 Mar 2015 20:58 GMT