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

jshell tool: Add support for preview features

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 11
    • 11
    • tools
    • b11
    • Verified

      Add --enable-preview flag to the jshell tool.

      Since jshell only works with the current JVM version and compiled code is immediately executed, passing the --release $N flag to jshell doesn't make sense. This means that when --enable-preview is used on the jshell tool in JDK $N, it will send "--release $N --enable-preview" to javac and "--enable-preview" to the java launcher.

            rfield Robert Field (Inactive)
            mtrudeau Michel Trudeau
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: