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

Behavior of CORBA methods passed null args is not defined.

XMLWordPrintable

    • 1.3
    • sparc
    • solaris_7
    • Not verified


        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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: