Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8299690

Make use of JLine for Console as "opt-in"

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P3 P3
    • 20
    • core-libs
    • None
    • behavioral
    • minimal
    • JDK

      Summary

      Making the support for "JLine" based Console as "opt-in"

      Problem

      The enhancement introduced in JDK-8295803 uses the JLine library (jdk.internal.le module) as the java.io.Console implementation by default. This resulted in the performance regression as reported in JDK-8299137.

      Solution

      Making the support for JLine optional. By default, JDK 20 will work like all previous releases. The JDK internal (and undocumented) system property jdk.console can be used to select the JLine implementation with -Djdk.console=jdk.internal.le.

      A future JDK release will re-visit this once the performance issue in JLine initialization is resolved.

      Specification

      N/A. This is a behavioral change only.

            naoto Naoto Sato
            naoto Naoto Sato
            Alan Bateman, Jaikiran Pai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: