-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
7038838: Unspecified NPE in java.net.IDN methods #22463
base: master
Are you sure you want to change the base?
Conversation
/csr needed |
👋 Welcome back jpai! A progress list of the required criteria for merging this PR into |
❗ This change is not yet ready to be integrated. |
@jaikiran has indicated that a compatibility and specification (CSR) request is needed for this pull request. @jaikiran please create a CSR request for issue JDK-7038838 with the correct fix version. This pull request cannot be integrated until the CSR request is approved. |
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.
Note this patch is doc-only and test-only, thus this may be backported to JDK 24 when it enters RDP 1. Looks good, the 4 methods seem to already throw NPE in isRootLabel
.
Can I please get a review of this doc-only changes which specifies the methods on
java.net.IDN
to throwNullPointerException
when any argument is null?This addresses https://bugs.openjdk.org/browse/JDK-7038838. As noted in that issue, the current implementation of these methods already throw a NullPointerException for any null argument. This change now updates the specification to match the current implementation.
A new jtreg test has been added to verify this behaviour. Note that there already was a
test/jdk/java/net/Socket/IDNTest.java
test but looking what that test does, the history of that test and the location of that test injava/net/Socket
directory made me believe that it's not meant for testing thejava.net.IDN
class. That's why I created this new test class intest/jdk/java/net/
directory.I'll draft a CSR for this change.
Progress
Issues
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/22463/head:pull/22463
$ git checkout pull/22463
Update a local copy of the PR:
$ git checkout pull/22463
$ git pull https://git.openjdk.org/jdk.git pull/22463/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 22463
View PR using the GUI difftool:
$ git pr show -t 22463
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/22463.diff
Using Webrev
Link to Webrev Comment