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

Error:java: invalid flag: -release

XMLWordPrintable

    • generic
    • generic

      FULL PRODUCT VERSION :
      Java(TM) SE Runtime Environment (build 9-ea+143)
      Java HotSpot(TM) 64-Bit Server VM (build 9-ea+143, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      OS X El Capitan 10.11.6

      A DESCRIPTION OF THE PROBLEM :
      IntelliJ IDEA 2016.2.5
      Build #IU-162.2228.15, built on October 14, 2016

      I try to compile Java 9 project and get error:

      Error:java: invalid flag: -release

      but "javac -help" gives me :

       --release <release> ,

      so it has two hyphens, but intellij idea calls it with one



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      difference between --release and -release

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      --release
      ACTUAL -
      -release

      REPRODUCIBILITY :
      This bug can be reproduced always.

            fmatte Fairoz Matte
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: