-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8356395: Spec needs to be clarified for InterfaceAddress.getBroadcast() method #25095
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back kieran-farrell! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
@kieran-farrell The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
* Certain IPv4 addresses, such as the loopback address, do not support | ||
* broadcasting and will also result in {@code null} being returned. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Certain IPv4 addresses, such as the loopback address, do not support | |
* broadcasting and will also result in {@code null} being returned. | |
* Certain network interfaces, such as the loopback interface, do not support | |
* broadcasting and will also return {@code null}. |
Maybe the class level API documentation should also be updated something like:
* This class represents a Network Interface address. In short it's an
* IP address, a subnet mask as well as a broadcast address when the address is
* IPv4 and the interface supports broadcasting.
* An IP address and a network prefix length in the case
* of IPv6 address.
It would be good to have @Michael-Mc-Mahon approve the wording.
/csr needed |
@dfuch has indicated that a compatibility and specification (CSR) request is needed for this pull request. @kieran-farrell please create a CSR request for issue JDK-8356395 with the correct fix version. This pull request cannot be integrated until the CSR request is approved. |
Spec currently suggests that only IPv6 addresses can return null for InterfaceAddress.getBroadcast(). Clarifying spec to state that certain IPv4 address such as the loopback address do not support broadcasting and can therefore also return null.
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/25095/head:pull/25095
$ git checkout pull/25095
Update a local copy of the PR:
$ git checkout pull/25095
$ git pull https://git.openjdk.org/jdk.git pull/25095/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 25095
View PR using the GUI difftool:
$ git pr show -t 25095
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/25095.diff
Using Webrev
Link to Webrev Comment