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

Unspecified behavior for null parameter for ServiceManager.lookup()

    Details

    • Subcomponent:
    • Resolved In Build:
      1.0-fcs
    • CPU:
      sparc
    • OS:
      solaris_2.6

      Description



      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.
      ----------------------------------------------------------------------------
      ======================================================================

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: