Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4387894

Incorrectly throws an exception with custom marshalled values

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • rmi-iiop_fcs
    • other-libs
    • None
    • merlin
    • sparc
    • solaris_1
    • Not verified

      Tested against: rip-int build b24 on Solaris.

      Summary:
      When the custom marshaller, incorrectly leaves off data on the stream, while unmarshalling custom value types it throws an org.omg.CORBA.Marshal exception.
      The ORB should be able to skip the extra data.

      The attached tar file contains a test case that illustrates this problem. To run the tests:
      1. untar the file
      2. Point the Makefile to the right build locations (This requires changes to the "To be changed" section in the Makefile.
      3. Type make at the prompt.

      The second test case testOverWrites writes extra data onto the stream while marshalling. This data is left on the stream while unmarshalling. This should not cause an exception to be thrown. However, currently it throws an org.omg.CORBA.MARSHAL exception
      ******************************************************************************

      ###@###.### 2001-08-13

      Fix verified OK
      1) with buid: j2sdk-1_4_0-beta_refresh-bin-b75-solsparc-09_aug_2001
      2) with Test: Attached test case (tests/product/giop/customMarshalling)

      ******************************************************************************

            eandersosunw Everett Anderson (Inactive)
            nkesavansunw Nandkumar Kesavan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: