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

Wrong exception is thrown while creating a SSLSocket with a bad address

XMLWordPrintable

      When trying to create a SSLSocket with a bad address, the wrong exception is thrown. According to the spec, a UnknownHostException should be thrown. However, on Linux a ConnectionException is thrown and on Solaris a BindException is thrown.
      This leads to the following JCK failure: api/javax_net/ssl/SSLSocket/index.html#Ctor4[Ctor4006]

      Stack traces are available in the two attached jtr files (index_Ctor4-Solaris.txt
      and index_Ctor4-Linux.txt)

            xuelei Xuelei Fan
            pjr Paul Rank (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: