Bugzilla – Bug 1693
IOP::Codec::decode_value, typecode handling in Any
Last modified: 2003-12-28 23:31:56
You need to log in before you can comment on or make changes to this bug.
- given a typedef FOO:OTSPolicyValue for unsigned short (in some IDL) - IOP::Codec::encode a value into an any - decode_value( any, _tc_OTS_PolicyValue ) will fail, because the typcode is not recognized as unsigned short - replacing the aliased typecode by the effective typecode _tc_ushort will make decode_value() work. - this problem has appeared with beta 1.3.6, did not check beta 1.3.5 but the issue seems not present in release <= 1.3.4
Chris, could you please stick a small test case in the bugzilla?
Created an attachment (id=250) [details] FOO_ClientRequestInterceptor.cpp
Created an attachment (id=251) [details] FOO_IORInterceptor.cpp
Created an attachment (id=252) [details] test.idl
replace the files from the attachment to test case PortableInterceptor/IORinterceptor run the "client" program, it should report a OTSPolicyValue of "0" - the expected value should be "2". applying the workaround (decode_value with _tc_ushort) will show an OTSPolicyValue of "2".
Assigning it to me since it looks like an Any bug
Fixed! Sun Dec 28 23:24:34 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu> Chris, please try to download the snap shot tomorrow morning to get these changes. Thanks very much!