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

Bad code generated for argument copies in local stubs

XMLWordPrintable

    • iiop_fcs
    • sparc
    • solaris_2.6

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: