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

Java Source Launcher shouldn't require --source when --enable-preview is used

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 12
    • 12
    • tools

      Currently, the Java Source Launcher is requiring --source when using --enable-preview, which isn't necessary since the invocation of the specified class is tied of a specific runtime version.

      The Java Source Launcher should pass -source N (where N is the version of the underlying java runtime) to the compilation phase, when --enable-preview is specified without --source on the launcher command line.

            jjg Jonathan Gibbons
            mtrudeau Michel Trudeau
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: