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

lookup should be more lenient with narrow() failures

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.3.1
    • 1.3.0
    • core-libs
    • None
    • ladybird
    • sparc
    • solaris_2.6

        lookup() calls resolve() and then tries to narrow the result to
        a NamingContext. If narrow() throws BAD_PARAM, then the original
        objref is returned.

        There appears to be a problem when objref exists but the corresponding
        object does not. In that case, you get a COMM_FAILURE or OBJECT_NOT_EXIST
        error, which getes propogated as an exception and the original
        objref not returned.

        The fix is to catch SystemException instead of BAD_PARAM.

        In CNCtx.callResolve, change:

          } catch (org.omg.CORBA.BAD_PARAM e) {
        return obj;
        }

        to
        } catch (org.omg.CORBA.SystemException e) {
        return obj;
        }

              rleesunw Rosanna Lee (Inactive)
              rleesunw Rosanna Lee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: