8366261: Provide utility methods for sun.security.util.Password#3232
Open
fitzsim wants to merge 1 commit into
Open
8366261: Provide utility methods for sun.security.util.Password#3232fitzsim wants to merge 1 commit into
fitzsim wants to merge 1 commit into
Conversation
Backport-of: 91417890a24450d7cb23d188df4f631304d41ed6
|
👋 Welcome back fitzsim! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
This backport pull request has now been updated with issue from the original commit. |
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request backports:
8366261: Provide utility methods for sun.security.util.Passwordas a dependency for another backport to follow shortly:
8354469: Keytool exposes the password in plain text when command is piped using | grepI considered combining them into one backport pull request but the second backport required non-trivial adjustments, so I will submit it separately in the hope of simplifying the review.
Starting from the backport of 8366261 to 17, I made the following adjustments:
JavaIOAccess.java adjustments:
In 17 JavaIOAccess.java was renamed from:
src/java.base/share/classes/jdk/internal/misc/JavaIOAccess.java
to:
src/java.base/share/classes/jdk/internal/access/JavaIOAccess.java
Left as-is in 11.
Adjust copyright year
Adjust java.util.Optional import for changed context
Mark passwordConsole and readPasswordNoNewLine declarations public
Console.java adjustments:
Adjust java.lang.annotation.Native import for changed context
Adjust java.util.concurrent.atomic.AtomicReference import for changed context
Adjust TTY_STDIN_MASK, TTY_STDOUT_MASK, and TTY_STDERR_MASK declarations offset, and mark them private
Adjust ttyStatus field declaration offset
Console_md.c adjustment:
I tested the combined 8366261 + 8354469 backports with the two new jtreg tests introduced by the latter, and they both pass.
A continuous integration test run showed a failure on
macos-x64:The following tests timed out resulting in failures:
The other two tests in the same file passed:
The failures seem unrelated to this pull request's changes; I suspect they are due to a loading issue on
macos-x64infrastructure.Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/3232/head:pull/3232$ git checkout pull/3232Update a local copy of the PR:
$ git checkout pull/3232$ git pull https://git.openjdk.org/jdk11u-dev.git pull/3232/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3232View PR using the GUI difftool:
$ git pr show -t 3232Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/3232.diff
Using Webrev
Link to Webrev Comment