-
Notifications
You must be signed in to change notification settings - Fork 231
8320798: Console read line with zero out should zero out underlying buffer #2053
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
|
👋 Welcome back goetz! A progress list of the required criteria for merging this PR into |
|
This backport pull request has now been updated with issue from the original commit. |
|
|
|
@GoeLin 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 1 new commit pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
|
/integrate |
|
Going to push as commit 48c8478.
Your commit was automatically rebased without conflicts. |
I think thsi should be backported to fix the underlying issue.
Console has been improved a lot in 21 and later, so the original patch does not apply well.
Console was turned into a sealed class. The implementation was moved to JdkConsoleImpl.
(8298416: Console should be declared sealed, 8298971: Move Console implementation into jdk internal package)
Later, the class moved to jdk.internal.le and JLine was added (8295803: Console should be usable in jshell and other environments).
I moved the coding to Console.java. We verified with our testcase that the issue is actually fixed. The two follow up fixes are not needed as 8295803 is not in 17.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/2053/head:pull/2053$ git checkout pull/2053Update a local copy of the PR:
$ git checkout pull/2053$ git pull https://git.openjdk.org/jdk17u-dev.git pull/2053/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 2053View PR using the GUI difftool:
$ git pr show -t 2053Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/2053.diff
Webrev
Link to Webrev Comment