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

javac -h NOSUCHDIR should fail, as -s and -d do

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 9
    • None
    • tools
    • None
    • generic
    • generic

      The flags -s -d -h all specify output directories - it's surprising if they handle non-existent directories differently. But they do:

       $ for flag in -d -s -h; do echo $flag ---; javac $flag NOSUCHDIR Main.java; done
      -d ---
      javac: directory not found: NOSUCHDIR
      Usage: javac <options> <source files>
      use -help for a list of possible options
      -s ---
      javac: directory not found: NOSUCHDIR
      Usage: javac <options> <source files>
      use -help for a list of possible options
      -h ---

            vromero Vicente Arturo Romero Zaldivar
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: