Release Note: Console should be usable in other environments

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Withdrawn
    • Priority: P4
    • None
    • Affects Version/s: 20
    • Component/s: core-libs
    • generic
    • generic

      `System.console()` historically only returned the `Console` when the Java virtual machine was associated with a character-based console device. This has changed in this release to return the `Console` object even when standard input is connected to a file or other virtual device.

      This support makes use of a JDK module named `jdk.internal.le`. When creating a run-time image with the `jlink` tool then the improved console support is only available when this module is included in the run-time image. If this module is not included then `System.console()` will only return the `Console` object whe the Java virtual machine is associated with a character-based console device.

            Assignee:
            Naoto Sato
            Reporter:
            Naoto Sato
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: