JDK-8240533 : Inconsistent Exceptions are thrown by DatagramSocket and DatagramChannel when sending a DatagramPacket to port 0.
Type:Bug
Component:core-libs
Sub-Component:java.net
Affected Version:15
Priority:P4
Status:Closed
Resolution:Fixed
Submitted:2020-03-04
Updated:2020-04-15
Resolved:2020-04-07
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
With DatagramSocket and MulticastSocket an IOException is thrown when sending to port 0, while a BindException is thrown by DatagramChannel and DatagramSocketAdaptor.