JDK-8331582 : Incorrect default Console provider comment
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.io
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2024-05-02
  • Updated: 2024-05-09
  • Resolved: 2024-05-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 23
23 b22Fixed
Related Reports
Relates :  
Description
In `java.io.Console`:

```
            /*
             * The JdkConsole provider used for Console instantiation can be specified
             * with the system property "jdk.console", whose value designates the module
>            * name of the implementation, and which defaults to "java.base". If no
             * providers are available, or instantiation failed, java.base built-in
             * Console implementation is used.
             */
            PrivilegedAction<Console> pa = () -> {
                var consModName = System.getProperty("jdk.console",
                        JdkConsoleProvider.DEFAULT_PROVIDER_MODULE_NAME);
```

The default Console is now provided by `jdk.internal.le` module with the fix to JDK-8308591. This comment needs to be corrected.
Comments
Changeset: cf2c80e4 Author: Naoto Sato <naoto@openjdk.org> Date: 2024-05-03 16:14:24 +0000 URL: https://git.openjdk.org/jdk/commit/cf2c80e4fcd74b9d1d60e2358e7883bdd8a4ac80
03-05-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/19070 Date: 2024-05-02 20:54:58 +0000
02-05-2024