8343378: Exceptions in javax/management DeadLockTest.java do not cause test failure#21804
8343378: Exceptions in javax/management DeadLockTest.java do not cause test failure#21804kevinjwalls wants to merge 1 commit intoopenjdk:masterfrom
Conversation
|
👋 Welcome back kevinw! A progress list of the required criteria for merging this PR into |
|
@kevinjwalls 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 15 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. ➡️ To integrate this PR with the above commit message to the |
|
@kevinjwalls The following labels 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 lists. If you would like to change these labels, use the /label pull request command. |
| try { | ||
| test(protocols[i]); | ||
| } catch (Exception e) { | ||
| fail = true; // any one protocol failure, fails the test |
There was a problem hiding this comment.
| fail = true; // any one protocol failure, fails the test | |
| fail = true; // any one protocol failure fails the test |
There was a problem hiding this comment.
I actually think it's more readable with the comma.
If there is (one protocol failure), then that (fails the test).
Without the comma, "failure fails" runs together, but the failure did not fail, it was a perfectly good failure. Pause for breath. What do we do now? Well, experiencing that kind of problem, fails the test.
Extended discussions on language style, from the test that brought you "listner" and "should no block". 8-)
There was a problem hiding this comment.
The best way to get to the right answer here is simplify to the subject and verb: "failure fails". You don't put a comma between the subject and the verb, unless is something more much complex like "a failure, for which there can be more than one, fails the test". I think the reason you feel it reads better with the comma is because of the repetition of "fail". Would you still want a comma if the sentence was "any one protocol error fails the test"? I assume no, but the sentence is structurally identical.
There was a problem hiding this comment.
Right, it is the repetition that makes me want the comma. There are other ways of phrasing this which would not need the comma. Even then, I still might introduce one to imply a pause, which I still think helps make it unambiguous on first read, without making it "...causes the test to fail" which is unnecessarily lengthy. It's also a comment buried in a test, not front page news.
There was a problem hiding this comment.
My 8th grade grammar teacher took no pity on students with "comma-itis" as he called it. They got penalized harshly for gratuitous use of commas. He definitely got through to me though.
There was a problem hiding this comment.
I think he should meet my parents, Jay-Z and Beyonce.
|
Thanks Alex! |
|
/integrate |
|
Going to push as commit 4a70c83.
Your commit was automatically rebased without conflicts. |
|
@kevinjwalls Pushed as commit 4a70c83. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Test update: fail when it hits an Exception.
This test still references jmxmp and iiop, which are of course redundant, there are various tests that still do this.
I am working on http, so we may revisit these tests in future to change their list of protocols.
For now, I'd like to simply make this test fail if any of the protocols it tests have failures.
Fix a few typos while we are here.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/21804/head:pull/21804$ git checkout pull/21804Update a local copy of the PR:
$ git checkout pull/21804$ git pull https://git.openjdk.org/jdk.git pull/21804/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 21804View PR using the GUI difftool:
$ git pr show -t 21804Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/21804.diff
Using Webrev
Link to Webrev Comment