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

Bad code generated for argument copies in local stubs

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      iiop_fcs
    • CPU:
      sparc
    • OS:
      solaris_2.6

      Description

      mic now generates the JavaToIDL 2.4 RTF form of local stubs,
      which requires copying most non-primitive types. The copying
      code has two serious errors:

      1) If an argument list has only one copied argument, and it is
         not the first, incorrect code is generated that does not
         compile.

      2) If an argument list has more than one copied argument, and the
         copied arguments do not occur contiguously in the argument
         list, incorrect code is generated that will cause runtime
         array indexing errors.

      Both bugs are in writeCopyArguments in
      sun.rmi.rmic.iiop.StubGenerator.

        Attachments

          Activity

            People

            Assignee:
            duke J. Duke (Inactive)
            Reporter:
            kcavanauorcl Ken Cavanaugh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: