Problem:
- Product Name: VisiBroker Enterprise
- Product Version: 6.0
- Product Component: ORB
- Platform/OS Version: ALL
- JDK/Compiler Version: Supported JDKs
There is an inconsistency in the type of exception thown by VisiBroker and the IDL to Java language mapping specification.
While using VisiBroker Enterprise (on server side), the servant attempts to return a sequence with a size larger than specified in the IDL definition. VisiBroker throws a BAD_PARAM system exception.
The OMG spec states a MARSHAL system exception should be raised.
The IDL to Java lang mapping (version 2.3 or 2.4) specs state:
"1.10 Mapping for Sequence: An IDL sequence is mapped to a Java array with the same name. In the mapping, everywhere the sequence type is needed, an array of the mapped type of the sequence element is used. Bounds checking shall be done on bounded sequences when they are marshaled as parameters to IDL operations, and an IDL CORBA::MARSHAL is raised if necessary."
Resolution
This is a failure and will be fixed in VBE 6.5
#Security
#marshal
#VisiBroker




