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

Unspecified behavior for null parameter for ServiceManager.lookup()

XMLWordPrintable

    • 1.0-fcs
    • sparc
    • solaris_2.6



      Name: ooR10001 Date: 09/12/2000


      The javadoc does not explicitly specify behavior of
      ServiceManager.lookup(String) method in case of null parameter.

      According to the existing javadoc, NullPointerException or
      UnavailableServiceException are both acceptable to be thrown if the method was
      called with null parameter. Please specify explicitly in order to develop
      correct JCK tests.

      javadoc says:
      -----------------------------
      lookup

      public static java.lang.Object lookup(java.lang.String name)
                                     throws UnavailableServiceException

            Asks the JNLP Client for a service with a given name.
            The lookup must be idempotent, that is return
            the same object for each invocation with the same name.
            Parameters:
                  name - Name of service to lookup.
            Returns:
                  An object implementing the service. null will never be returned.
      Instead an exception will be
                  thrown.
            Throws:
                  UnavailableServiceException - if the service is not available.
      ----------------------------------------------------------------------------
      ======================================================================

            sbohne Steve Bohne (Inactive)
            oovsunw Oov Oov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: