-
Bug
-
Resolution: Fixed
-
P2
-
rmi-iiop_beta1
-
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.
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.