jdk/src/java.base/share/classes/java
Patrick Concannon 8e21a2a1e4 8237890: DatagramPacket::getSocketAddress doesn't specify what happens if address or port are not set
This fix changes the default port of a DatagramPacket from -1 to 0, which changes the behaviour of calling getSocketAddress with no port set from throwing an IAE to returning an InetSocketAddress representing any local address with port 0.

Reviewed-by: alanb, chegar, dfuchs
2020-04-22 12:34:09 +01:00
..
io Merge 2020-04-14 23:11:49 +00:00
lang 8238195: Lookup::defineClass should link the class to match the specification 2020-04-21 07:09:18 -07:00
math Merge 2020-04-14 23:11:49 +00:00
net 8237890: DatagramPacket::getSocketAddress doesn't specify what happens if address or port are not set 2020-04-22 12:34:09 +01:00
nio Merge 2020-04-14 23:11:49 +00:00
security 8241761: Typos: empty lines in javadoc, inconsistent indents, etc. (security-libs only) 2020-04-01 18:38:05 -07:00
text 8242337: javadoc typo in NumberFormat::setMinimumFractionDigits 2020-04-08 11:40:33 -07:00
time 8241014: Miscellaneous typos in documentation comments 2020-03-20 20:54:56 +00:00
util 8242959: Optimize ZipFile.getEntry by folding lookups for name and name+'/' 2020-04-18 20:19:45 +02:00