Skip to content

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kieran-farrell
Copy link

@kieran-farrell kieran-farrell commented May 7, 2025

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

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change requires a CSR request matching fixVersion 25 to be approved (needs to be created)

Issue

  • JDK-8356395: Spec needs to be clarified for InterfaceAddress.getBroadcast() method (Bug - P4)

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

@bridgekeeper
Copy link

bridgekeeper bot commented May 7, 2025

👋 Welcome back kieran-farrell! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented May 7, 2025

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk bot added the rfr Pull request is ready for review label May 7, 2025
@openjdk
Copy link

openjdk bot commented May 7, 2025

@kieran-farrell The following label will be automatically applied to this pull request:

  • net

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.

@mlbridge
Copy link

mlbridge bot commented May 7, 2025

Webrevs

Comment on lines +66 to +67
* Certain IPv4 addresses, such as the loopback address, do not support
* broadcasting and will also result in {@code null} being returned.
Copy link
Member

@dfuch dfuch May 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 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.

@dfuch
Copy link
Member

dfuch commented May 7, 2025

/csr needed

@openjdk openjdk bot added the csr Pull request needs approved CSR before integration label May 7, 2025
@openjdk
Copy link

openjdk bot commented May 7, 2025

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
csr Pull request needs approved CSR before integration net [email protected] rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

2 participants