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

JDK 1.3.1/1.4 interop failure for all exceptions

    XMLWordPrintable

Details

    • 03
    • generic
    • generic
    • Not verified

    Backports

      Description

        See bug 4615605 for extra information.

        java.lang.Throwable evolved in J2SE 1.4 to add a stack trace and a cause Throwable. While 4615605 fixed interop between 1.3.1_04 and Hopper in the sense that Hopper will now receive the correct exceptions (and vice versa), the detailMessage is getting lost -- it gets set to null. Unfortunately, this means that the toString method of Throwable in 1.3.1_04 generates NullPointerExceptions.

        The problem comes from two issues with the ValueHandler:

        1. On the 1.3.1_04 side, the switch statements for reading class data based on FVD typecodes do not have tk_value. They only have tk_value_box.

        2. On the Hopper side, the UnknownExceptionInfo service context is being encoded with GIOP 1.2 CDR even though 1.3.1_04 can only speak 1.0 CDR.

        NOTE: The fix for 4615605 did not cause these problems. They were there, behind the problems addressed in 4615605. The test case didn't print the exceptions, so didn't detect the error.

        Expanded test case attached.

        Attachments

          Issue Links

            Activity

              People

                hputtaswsunw Hemanth Puttaswamy (Inactive)
                eandersosunw Everett Anderson (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: