-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8350542: Optional.orElseThrow(Supplier) does not specify behavior when supplier returns null #23905
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
Conversation
…n supplier returns null
|
Hi @gustavosimon, welcome to this OpenJDK project and thanks for contributing! We do not recognize you as Contributor and need to ensure you have signed the Oracle Contributor Agreement (OCA). If you have not signed the OCA, please follow the instructions. Please fill in your GitHub username in the "Username" field of the application. Once you have signed the OCA, please let us know by writing If you already are an OpenJDK Author, Committer or Reviewer, please click here to open a new issue so that we can record that fact. Please use "Add GitHub user gustavosimon" as summary for the issue. If you are contributing this work on behalf of your employer and your employer has signed the OCA, please let us know by writing |
|
@gustavosimon This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 862 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@liach, @RealCLanger) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
@gustavosimon 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. |
|
@robilad As you asked, I have already sent you an e-mail verify my OCA. I will need for this PR. Cheers, looking forward! 😀 |
|
/csr Since this changes API specification text, we will need a small CSR for archival purposes noting the specification change. @RealCLanger since you have assigned yourself on the JBS, you might help with the CSR process too. |
|
@liach has indicated that a compatibility and specification (CSR) request is needed for this pull request. @gustavosimon please create a CSR request for issue JDK-8350542 with the correct fix version. This pull request cannot be integrated until the CSR request is approved. |
|
You can comment
and see if it's handled. |
|
/oca verify |
|
@gustavosimon Unknown command |
|
Oops sorry, it should be
|
|
@liach oca appears to be not recognized by bot |
|
The fastest GH's reply was made now! hahaha |
|
/signed |
|
Thank you! Please allow for up to two weeks to process your OCA, although it is usually done within one to two business days. Also, please note that pull requests that are pending an OCA check will not usually be evaluated, so your patience is appreciated! |
|
/signed |
|
Already processed the |
|
I think Dalibor might be busy - You might email him again on the progress. |
|
I have created a CSR: https://bugs.openjdk.org/browse/JDK-8354953 |
|
/signed |
|
Already processed the |
|
@liach and @RealCLanger what's the next step to merge this into master? |
|
@RealCLanger I will do it today. The CSR seems to be approved now - then I just need to push the change to merge it. |
|
Also please add some of your own text to the pull request body, like the first sentence of the issue report:
Once you have pushed the changes, Chris or I may review this for integration. |
|
@liach now the PR is ready for review. We're almost there! 🔝 |
Webrevs
|
|
@liach @RogerRiggs Sorry, I forgot a part of the specification! Now we are ready! |
liach
left a comment
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.
Looks good.
|
|
/integrate |
|
@gustavosimon |
|
@liach Can't I integrate? |
When you are not a committer, some committer needs to sponsor it for you. I'm doing it. 😄 /sponsor |
|
Going to push as commit 44374a5.
Your commit was automatically rebased without conflicts. |
|
@RealCLanger @gustavosimon Pushed as commit 44374a5. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Javadoc for java.util.Optional.orElseThrow(Supplier) misses mentioning of another possible cause of a NullPointerException - when the exception supplying function returns a null result.
Progress
Error
Issues
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/23905/head:pull/23905$ git checkout pull/23905Update a local copy of the PR:
$ git checkout pull/23905$ git pull https://git.openjdk.org/jdk.git pull/23905/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 23905View PR using the GUI difftool:
$ git pr show -t 23905Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/23905.diff
Progress
Issues
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/23905/head:pull/23905$ git checkout pull/23905Update a local copy of the PR:
$ git checkout pull/23905$ git pull https://git.openjdk.org/jdk.git pull/23905/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 23905View PR using the GUI difftool:
$ git pr show -t 23905Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/23905.diff
Using Webrev
Link to Webrev Comment