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

Clash of old "-s" and new "-s dir" options in javac

XMLWordPrintable

    • b73
    • generic
    • generic
    • Verified

      The new -s dir used to specify the source output directory (and impl in javac.main.Main) clashes with the older undocumented -s switch used to request source output of generated files (and impl in javac.main.JavaCompiler).

      This means that if the documented "-s dir" option is used, when the time comes to generate any class files, JavaCompiler will instead try and generate source code instead.

            jjg Jonathan Gibbons
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: