-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8347491: IllegalArgumentationException thrown by ThreadPoolExecutor doesn't have a useful message #23050
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
|
Hi @He-Pin, 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 He-Pin" 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 |
|
@He-Pin 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 2172 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 (@viktorklang-ora, @liach, @minborg) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
@He-Pin Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information. |
|
@He-Pin Please do not rebase or force-push to an active PR as it invalidates existing review comments. Note for future reference, the bots always squash all changes into a single commit automatically as part of the integration. See OpenJDK Developers’ Guide for more information. |
|
@viktorklang-ora @AlanBateman @DougLea This PR is a kind of happen before :) |
|
/covered |
|
Thank you! Please allow for a few business days to verify that your employer has signed the OCA. Also, please note that pull requests that are pending an OCA check will not usually be evaluated, so your patience is appreciated! |
|
Hang tight, the verification takes a looooooong time, so it might be a while before your work is seen... |
|
I have another PR, I will wait before oca is completed. |
Webrevs
|
|
Hi @He-Pin, Thanks for your patience here—I've been in catch-up mode. I didn't know there was already a PR for this issue when I created my PR for the issue, so in order to pick a PR to move forward with, would you prefer that I review your PR or would you rather move forward with the other PR? Either works for me! Cheers, |
|
It would be much nicer if you take this one:), we are on JDK 21 and want to have this in the next LTS. |
src/java.base/share/classes/java/util/concurrent/AbstractExecutorService.java
Outdated
Show resolved
Hide resolved
|
@He-Pin Just pinging you here, in case the notification from my most recent comments got lost in transit. |
…torService.java Co-authored-by: Viktor Klang <viktor.klang@oracle.com>
…torService.java Co-authored-by: Viktor Klang <viktor.klang@oracle.com>
|
/reviewers 2 |
|
@viktorklang-ora |
viktorklang-ora
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.
Thanks for your work here, @He-Pin
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, though I would relax the check on messages to just include the offending variable names to ensure compatible evolution.
|
@viktorklang-ora @liach, I think we need a contribution guide that explains how to set up the work in the IDE, how to perform tests, etc. |
|
@He-Pin Please suggest improvements to https://openjdk.org/guide/ 👍 |
This document https://github.com/openjdk/jdk/blob/master/doc/ide.md describes IDE support, but I couldn't find if it is also contained/linked from https://openjdk.org/guide/ |
|
There's a Hotspot Development section in the guide, maybe we need one for Java development that talks about IDE and such too. |
minborg
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 to me.
|
/integrate |
|
@viktorklang-ora Only the author (@He-Pin) is allowed to issue the |
|
@He-Pin This PR is now ready to integrate, type "/integrate" (without the quotes) as a comment on this PR. |
|
@He-Pin Reminder: Integration needs to be done immediately if this is to make the release train. |
|
Or, you can seek to backport this into jdk25u(-dev) repo once RDP1 begin, as if backporting to an LTS release. |
|
/integrate |
|
/sponsor |
|
Going to push as commit f141674.
Your commit was automatically rebased without conflicts. |
|
@viktorklang-ora @He-Pin Pushed as commit f141674. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Motivation:
When a user passes a wrong parameter, the current implementation throws an IllegalArgumentException with an error message
null, which is not helpful.Modification:
Add detail error messages.
Result:
Helpful messages.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/23050/head:pull/23050$ git checkout pull/23050Update a local copy of the PR:
$ git checkout pull/23050$ git pull https://git.openjdk.org/jdk.git pull/23050/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 23050View PR using the GUI difftool:
$ git pr show -t 23050Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/23050.diff
Using Webrev
Link to Webrev Comment