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

StringDynAny.from_any(StringAny) not throwing InvalidValue exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • other-libs
    • 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.
      ********************************************************************************

            sbauersunw Stefan Bauer (Inactive)
            arungup Arun Gupta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: