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

jshell tool: Add support for preview features

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 11
    • 11
    • tools
    • b11
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: