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

POA.reference_to_servant signature should include WrongAdapter

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.4.0
    • other-libs
    • None
    • beta2
    • sparc
    • solaris_7
    • Not verified

          There is an editorial error in the POA IDL in the CORBA 2.3.1 specification. The consolidated IDL for the POA incorrectly lists the operation

              ObjectId reference_to_servant( in Object reference ) raises (
                  ObjectNotActive, WrongPolicy )

          The raises clause should also include WrongAdapter, as explained in section
          11.3.8.22 of CORBA 2.3.1. The WrongAdapter exception should be raised if
          regerence_to_servant is called on an object reference that was not created
          by the POA instance on which reference_to_servant is invoked.

          Anita Jindal raised this issue with the OMG as issue 3739. The issue was
          resolved as an editorial fix to the POA IDL in the CORBA Core RTF NM as
          recorded in OMG document ptc/00-11-01. This change has not yet been
          incorporated in any official CORBA spec.

          Another related problem is raised in issue 3740: If find_POA calls
          the unknown_adapter method on an AdapterActivator, and unknown_adapter
          throws a system exception, find_POA should intercept this exception
          and throw an OBJ_ADAPTER system exception with minor code 1. We currently
          throw OBJ_ADAPTER with a Sun proprietary minor code.

      *******************************************************************************
      ###@###.### 2001-12-14

      Fixed Verified OK

      With Build:
      j2sdk-1_4_0-rc-bin-b89-win-06_dec_2001

      With Test:
      /java/idl/ws/rip/RIP_TEST_MASTER/tests/api/poa/poa/findpoa/FindPoaTest.java
      /java/idl/ws/rip/RIP_TEST_MASTER/tests/api/poa/poa/referencetoservant/ReferenceToServantTest.java
      *******************************************************************************

            kcavanauorcl Ken Cavanaugh (Inactive)
            kcavanauorcl Ken Cavanaugh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: