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

Behavior of CORBA methods passed null args is not defined.

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.3.0
    • Component/s: other-libs
    • Subcomponent:
    • Resolved In Build:
      1.3
    • CPU:
      sparc
    • OS:
      solaris_7
    • Verification:
      Not verified

      Backports

        Description


        In class org.omg.CORBA.CosNaming._NamingContextStub.

        Method bind_context(NameComponent[],NameContext). What should the
        behaviour be when the NameContext is null? We have test code from
        Object-Oriented Concepts, Inc. The test code used a null 2nd arg.
        If the behaviour is not defined then we should expect users, however
        foolish, to use it. If and when JavaSoft changes the behavior
        (rather than defaulting it?) it will break user's codes.

        Method bind(NameComponent[],Object). What should the behavior be when
        the Object is null? See above.

        ajay.awatramani@eng 1999-07-15

        Method rebind(NameComponent[],Object) : Undefined behavior when Object is null.

        ajay.awatramani@eng 1999-07-21

        The bind() apparently binds a null object to the NameComponent (say name1) and when an unbind(name1) is called, an Exception is thrown.

        A similar observation :
        The bind() binds a null object to the NameComponent (say name1) and
        when object = resolve(NameComponent) is called, an Exception is thrown.


        ajay.awatramani@eng 1999-07-22

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                hputtaswsunw Hemanth Puttaswamy (Inactive)
                Reporter:
                duke J. Duke (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: