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

crash: test/tools/javac/versions/check.sh

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • 6
    • tools
    • None
    • b75
    • generic
    • generic
    • Verified

      cat Y.java
      public enum Y { }

      $ javac -XDdev -source 1.4 Y.java
      Y.java:1: class or interface expected
      public enum Y { }
             ^
      Y.java:1: reached end of file while parsing
      public enum Y { }
                       ^
      An exception has occurred in the compiler (1.6.0-rc). 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.AssertionError: JCExpressionStatement
              at com.sun.tools.javac.tree.TreeMaker.TopLevel(TreeMaker.java:116)
              at com.sun.tools.javac.parser.Parser.compilationUnit(Parser.java:2027)
              at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:441)
              at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:480)
              at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:697)
              at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:629)
              at com.sun.tools.javac.main.Main.compile(Main.java:761)
              at com.sun.tools.javac.main.Main.compile(Main.java:686)
              at com.sun.tools.javac.main.Main.compile(Main.java:675)
              at com.sun.tools.javac.Main.compile(Main.java:70)
              at com.sun.tools.javac.Main.main(Main.java:55)

            ahe Peter Ahe
            ahe Peter Ahe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: