jshell tool: Add support for preview features

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 11
    • Affects Version/s: 11
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: