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

JSR 199: Compiler crash when trying to compile a directory

XMLWordPrintable

    • generic
    • generic

      Compiler crashed when I tried to compile a directory.
      Accidentally I used 'mkdir <filename>' insteadof 'touch <filename>'. I tried compiling the filename and compiler crashed.
      <How-to>
      bash-3.00$ mkdir Foo.java
      bash-3.00$ javac Foo.java
      An exception has occurred in the compiler (1.6.0-beta2). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
      java.lang.IllegalArgumentException: directories not supported
              at com.sun.tools.javac.util.DefaultFileManager$RegularFileObject.<init>(DefaultFileManager.java:1023)
              at com.sun.tools.javac.util.DefaultFileManager$RegularFileObject.<init>(DefaultFileManager.java:1018)
              at com.sun.tools.javac.util.DefaultFileManager.getJavaFileObjectsFromFiles(DefaultFileManager.java:861)
              at com.sun.tools.javac.util.DefaultFileManager.getJavaFileObjectsFromStrings(DefaultFileManager.java:160)
              at com.sun.tools.javac.main.Main.compile(Main.java:322)
              at com.sun.tools.javac.main.Main.compile(Main.java:253)
              at com.sun.tools.javac.main.Main.compile(Main.java:244)
              at com.sun.tools.javac.Main.compile(Main.java:69)
              at com.sun.tools.javac.Main.main(Main.java:54)
      bash-3.00$
      </How-to>

      <java-version>
      bash-3.00$ java -version
      java version "1.6.0-beta2"
      Java(TM) SE Runtime Environment (build 1.6.0-beta2-b85)
      Java HotSpot(TM) Client VM (build 1.6.0-beta2-b85, mixed mode)
      </java-version>

            ahe Peter Ahe
            savadhansunw Seetharama Avadhanam (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: