JDK-8260547 : Investigate deprecation of the DatagramSocket impl factory mechanism
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 17
  • Priority: P4
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2021-01-27
  • Updated: 2021-02-12
  • Resolved: 2021-02-11
Description
DatagramSocket.setDatagramSocketImplFactory can be trivially deprecated once a solution is found for JDK-8237352.
The DatagramSocketImplFactory type could also be deprecated at the same time, or simply left alone.

Input from Alan:

The deprecation text for DatagramSocket.setDatagramSocketImplFactory should probably say that it provided a way in early JDK release to replace the system wide implementation. It has been mostly obsolete since Java 1.4. A DatagramSocket can created to use a custom implementation by extending DatagramSocket and using the protected constructor that takes the impl as a parameter.