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

jshell tool: Add support for preview features

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      b11
    • Verification:
      Verified

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rfield Robert Field
                Reporter:
                mtrudeau Michel Trudeau
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: