RFR: 8300010: UnsatisfiedLinkError on calling System.console().readPassword() on Windows

Naoto Sato naoto at openjdk.org
Fri Jan 13 19:34:15 UTC 2023


On Fri, 13 Jan 2023 14:12:36 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> 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.

Thanks, Alan. Modified the code not to share the handles.

-------------

PR: https://git.openjdk.org/jdk/pull/11973


More information about the core-libs-dev mailing list