RFR: 8300010: UnsatisfiedLinkError on calling System.console().readPassword() on Windows
Alan Bateman
alanb at openjdk.org
Fri Jan 13 14:15:13 UTC 2023
On Thu, 12 Jan 2023 17:08:29 GMT, Naoto Sato <naoto at openjdk.org> wrote:
> Fixing a regression caused by the fix to [JDK-8298971](https://bugs.openjdk.org/browse/JDK-8298971). The previous fix lacked the native part change on Windows.
I think we should try to have a cleaner separation between these native methods. If JdkConsoleImpl_echo is changed to call GetStdHandle(STD_INPUT_HANDLE) then it would avoid needing Console_md to export java_io_Console_hStdIn. It would mean the static fields in Console_md could be removed too.
-------------
PR: https://git.openjdk.org/jdk/pull/11973
More information about the core-libs-dev
mailing list