JDK-8237890 : DatagramPacket::getSocketAddress doesn't specify what happens if address or port are not set
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.
Three possible courses here order by perceived risk of regression:
1. specify IAE if port not set and wildcard if address not set (throws IAE only if port not set, current unspecified behavior)
2. specify wildcard if address is not set, and port 0 if port is not set (never throws)
3. specify that null is returned if either port or address are not set (never throws)
4. specify that port is 0 when not set.
It might be interesting to try out options 2., 3., and 4. and run the tests + jck to see what would start failing.