Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8295803 Console should be usable in jshell and other environments
  3. JDK-8298325

Release Note: Console should be usable in other environments

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Withdrawn
    • P4
    • None
    • 20
    • core-libs
    • generic
    • generic

    Description

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: