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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 18
    • 18
    • core-libs
    • b27

        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.

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

                Created:
                Updated:
                Resolved: