-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0
-
None
-
merlin
-
sparc
-
solaris_7
-
Not verified
String DynAny can be intialized from an Any using from_any. When Any used for initialization has null value, then InvalidValue exception needs to be thrown by from_any.
This intended behaviour is not happening. I'm providing the source code for reproducing the problem.
Any string_any_1 = orb.create_any();
string_any_1.type(orb.get_primitive_tc(TCKind.tk_string));
string_any_1.insert_string("hello world!");
Any string_any_2 = orb.create_any();
string_any_2.type(orb.get_primitive_tc(TCKind.tk_string));
string_any_2.insert_string(null);
DynAny string_dynany = factory.create_dyn_any(string_any_1);
string_dynany.from_any(string_any_1);
string_dynany.from_any(string_any_2);
********************************************************************************
###@###.### 2001-08-17
- Fix verified ok
1) with build: j2sdk-1_4_0-beta_refresh-bin-b76-solsparc-15_aug_2001
2) with test: /tests/api/dynany/bugs/bug_4348310
- I am using muthu's id to verify & close the bugs since i didn't get the id yet.
********************************************************************************
This intended behaviour is not happening. I'm providing the source code for reproducing the problem.
Any string_any_1 = orb.create_any();
string_any_1.type(orb.get_primitive_tc(TCKind.tk_string));
string_any_1.insert_string("hello world!");
Any string_any_2 = orb.create_any();
string_any_2.type(orb.get_primitive_tc(TCKind.tk_string));
string_any_2.insert_string(null);
DynAny string_dynany = factory.create_dyn_any(string_any_1);
string_dynany.from_any(string_any_1);
string_dynany.from_any(string_any_2);
********************************************************************************
###@###.### 2001-08-17
- Fix verified ok
1) with build: j2sdk-1_4_0-beta_refresh-bin-b76-solsparc-15_aug_2001
2) with test: /tests/api/dynany/bugs/bug_4348310
- I am using muthu's id to verify & close the bugs since i didn't get the id yet.
********************************************************************************
- duplicates
-
JDK-4354713 from_any not throwing InvalidValue exception
-
- Closed
-