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

Custom DatagramSocketImpl's create method not called when with protected constructor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 15
    • 15
    • core-libs
    • b09

      A side-effect of JDK-8236925 is that creating a DatagramSocket with a custom DatagramSocketImpl will not invoke the imp's create method to create the socket. DatagramSocketImpl is very under-specified in this area but long standing behavior has been to create the socket lazily. The protected constructor can't throw SocketException and an unchecked exception would be unexpected.

            dfuchs Daniel Fuchs
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: