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

Spec for InetAddressResolverProvider::get() throwing error or exception could be clearer

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 18
    • 18
    • core-libs
    • b27

    Backports

      Description

        From the spec : InetAddressResolverProvider::get(InetAddressResolverProvider.Configuration configuration)

          "Any error or exception thrown by this method is considered as a failure of InetAddressResolver instantiation and will be propagated to the calling thread."
          
        Need a clarification regarding the phrase "propagated to the calling thread."
         
         Technically, the invocation of the InetAddressResolverProvider::get() done by the JDK implementation as a result of application/test invoking one of the methods resulting in lookup operations.
         
         Is it right expectation that "The application/test" receives the exception or error thrown by the InetAddressResolverProvider::get() ?
         
           OR
           
         Is There is a possibility that JDK implementation interpret "the exception or error thrown by the InetAddressResolverProvider::get()" and returns OR throws something as stated by the respective look up operation methods?
         
        Currently the spec looks ambiguous in this context.

        Attachments

          Issue Links

            Activity

              People

                aefimov Aleksej Efimov
                kganapureddy Krushnareddy Ganapureddy
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: