hg: jdk/submit: 8234103: DatagramSocketImpl::socket is not needed

daniel.fuchs at oracle.com daniel.fuchs at oracle.com
Thu Nov 21 11:44:47 UTC 2019


Changeset: a686b67a59d9
Author:    pconcannon
Date:      2019-11-20 10:13 +0000
URL:       https://hg.openjdk.java.net/jdk/submit/rev/a686b67a59d9

8234103: DatagramSocketImpl::socket is not needed
Summary: DatagramSocketImpl has a socket field that links back to the DatagramSocket. This is only used to figure out whether multicasting is supported or not. This fix replaces it with a boolean isMulticast.
Reviewed-by: alanb, chegar, dfuchs

! src/java.base/share/classes/java/net/AbstractPlainDatagramSocketImpl.java
! src/java.base/share/classes/java/net/DatagramSocket.java
! src/java.base/share/classes/java/net/DatagramSocketImpl.java
! src/java.base/unix/classes/java/net/DefaultDatagramSocketImplFactory.java
! src/java.base/unix/classes/java/net/PlainDatagramSocketImpl.java
! src/java.base/windows/classes/java/net/DefaultDatagramSocketImplFactory.java
! src/java.base/windows/classes/java/net/DualStackPlainDatagramSocketImpl.java
! src/java.base/windows/classes/java/net/TwoStacksPlainDatagramSocketImpl.java



More information about the jdk-submit-changes mailing list