-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8357993: Use "stdin.encoding" for reading System.in with InputStreamReader/Scanner [hotspot] #25542
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
Improve `CharsetTest`
`PandocFilter` et al. gets called using the boot JDK, which doesn't have `stdin.encoding` yet.
Remove assertion in `DOMImplementationRegistry`
|
👋 Welcome back vyazici! A progress list of the required criteria for merging this PR into |
|
@vy 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 196 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 |
Webrevs
|
plummercj
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.
Changes look good. Can you clarify your testing?
@plummercj, green |
|
/reviewers 2 |
|
@AlanBateman |
|
/reviewers 1 |
|
@AlanBateman |
That's not going to be sufficient. The nsk tests are not being run until tier5. |
@plummercj, I've attached the |
Looks good. |
sspitsyn
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 okay to me.
|
@AlanBateman @plummercj @sspitsyn Thanks so much for taking time to review the changes, much appreciated. 🙇 /integrate |
|
Going to push as commit bb2611a.
Your commit was automatically rebased without conflicts. |
Okay, but I'm still puzzled as to why the tests were changed as they don't ready from the console. |
@AlanBateman, I only skipped the practice of passing |
Tests are automated and very rare to have tests read from an interactive console. A small number of test uses "expect" for testing interactive input. There might be tests that have stdin redirected from a file or something else. For multi VM tests (very common in the test suite) then you typically see the parent process using Process/ProcessBuilder and starting a child VM with its standard streams connected to the parent, meaning reading from System.in will read from a pipe connected to the parent. Some tests do inherit but I doubt we have any tests that inherit and also read from an interactive console. So my point is that we probably don't need to jump on all tests that use System.in. The tests that do read from System.in probably need closer examination to see if they are reading from a pipe or something else. |
I think 😅 I see your point, and I agree with it. I've dropped several of my earlier changes from the abandoned parent #25368 – this applies to all subsequent tickets: #25544 (core), #25541 (tools), and this one. When the subject code is called in a
In all @AlanBateman, if you think a particular change needs closer examination or needs to be reverted, please say so. I'd be more than happy to carry out that task. |
|
BindServer.java is not used. It can be removed. The changes in attach010Agent00.java are unnecessary because System.in has been set to read from a file: 35 private static final String inStreamFileName = "AttachOnDemand.attach010.in"; |
|
@plummercj, shall I create a ticket+PR to
|
Yes. It might be better to make them 2 PRs. |
|
I've created
Used @plummercj, @AlanBateman, thank you for your assistance and patience. 🙇 |
Passes the
Charsetread from thestdin.encodingsystem property while creatingInputStreamReaderorScannerinstances forSystem.in.stdin.encodingis a recently added property for Java 25 in JDK-8350703. Employing it throughout the entire code base is addressed by the parent ticket JDK-8356893. JDK-8357993 this PR is addressing is a sub-task of JDK-8356893 and is concerned with only areas related to Hotspot.Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/25542/head:pull/25542$ git checkout pull/25542Update a local copy of the PR:
$ git checkout pull/25542$ git pull https://git.openjdk.org/jdk.git pull/25542/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 25542View PR using the GUI difftool:
$ git pr show -t 25542Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/25542.diff
Using Webrev
Link to Webrev Comment