-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
8334305: Remove all code for nsk.share.Log verbose mode #21267
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back rsunderbabu! A progress list of the required criteria for merging this PR into |
@rsunderbabu 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 25 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 (@lmesnik, @Hamlin-Li) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
@rsunderbabu 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. |
Webrevs
|
@@ -315,16 +262,9 @@ public void trace(int level, Object message, Throwable exception) { | |||
|
|||
/** | |||
* Print <code>message</code> to the assigned output stream, |
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.
Need replace the comma with a period.
if (!verbose()) { | ||
doPrint(message); | ||
} |
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.
Is this method ever called? Is there a CR to remove it (and any references to it)?
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.
These are deprecated methods and are still getting called. The calls need to be replaced with display. I will create a separate CR for this and address because the impact radius of such a change is bigger than this CR.
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.
ok
@@ -406,10 +337,9 @@ private void logExceptionForFailureAnalysis(String msg) { | |||
///////////////////////////////////////////////////////////////// | |||
|
|||
/** | |||
* Redirect log to the given <code>stream</code>, and switch | |||
* log mode to verbose. | |||
* Redirect log to the given <code>stream</code> |
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.
Need period at end of sentence.
* Prints errors summary to current stream, cancel current stream | ||
* and switches to new stream. Turns on verbose mode for new stream. | ||
* and switches to new stream. |
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.
Does it really do all this? It looks to me like it just switches to the new stream. I'm not sure what is meant by "error summary" and cancelling.
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.
marked for deprecation.
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.
Ok, but unless it is going to be removed by another CR soon, I think the comments should at least reflect what it currently does.
/integrate |
@rsunderbabu |
@rsunderbabu this should wait for the second review by @plummercj to be completed before it is integrated. Thanks. |
Thanks for pointing out David. I missed seeing those comments. I have addressed them now. |
import java.util.HashMap; | ||
import java.util.Map; | ||
import java.util.Set; | ||
import java.util.HashSet; | ||
import java.util.Vector; | ||
|
||
import nsk.share.test.LazyFormatString; | ||
|
||
/** | ||
* This class helps to print test-execution trace messages |
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.
Missing period.
if (!verbose()) { | ||
doPrint(message); | ||
} |
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.
ok
* Prints errors summary to current stream, cancel current stream | ||
* and switches to new stream. Turns on verbose mode for new stream. | ||
* and switches to new stream. |
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.
Ok, but unless it is going to be removed by another CR soon, I think the comments should at least reflect what it currently does.
JDK-8341302 created for addressing deprecated method usage. |
Cleaning up nsk.share.Log code after the verbose mode was set always true.
Tested all the vmTestbase/ tests.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/21267/head:pull/21267
$ git checkout pull/21267
Update a local copy of the PR:
$ git checkout pull/21267
$ git pull https://git.openjdk.org/jdk.git pull/21267/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 21267
View PR using the GUI difftool:
$ git pr show -t 21267
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/21267.diff
Webrev
Link to Webrev Comment