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

NPE in javac running test/tools/javac/nio/compileTest/CompileTest.java

    Details

    • Subcomponent:
    • Resolved In Build:
      b126
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      Test 1 [-bootclasspath, rt.dir, -classpath, , -sourcepath, , -extdirs, ] HelloPathWorld
      [parsing started [C:\temp\jprt\P2\T\164449.bp145073\source\langtools\test\tools\javac\nio\compileTest\HelloPathWorld.java]]
      [parsing completed 0ms]
      [loading [rt.dir\java\lang\Object.class]]
      [loading [rt.dir\java\lang\String.class]]
      [attribute HelloPathWorld]
      [checking HelloPathWorld]
      [loading [rt.dir\java\lang\System.class]]
      [loading [rt.dir\java\io\PrintStream.class]]
      [loading [rt.dir\java\io\FilterOutputStream.class]]
      [loading [rt.dir\java\io\OutputStream.class]]
      [flow HelloPathWorld]
      [desugar HelloPathWorld]
      [generate code HelloPathWorld]
      [wrote [classes.1\HelloPathWorld.class]]
      [total 47ms]

      Provider: file sun.nio.fs.WindowsFileSystemProvider@1d101d2
      Provider: jar com.sun.nio.zipfs.ZipFileSystemProvider@ce8b21
      Test 2 [-bootclasspath, C:\temp\jprt\P2\T\164449.bp145073\testproduct\windows_i586_5.1-product\jre\lib\rt.jar, -classpath, , -sourcepath, , -extdirs, ] HelloPathWorld
      [parsing started [C:\temp\jprt\P2\T\164449.bp145073\source\langtools\test\tools\javac\nio\compileTest\HelloPathWorld.java]]
      [parsing completed 0ms]
      An exception has occurred in the compiler (1.7.0-internal). 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.NullPointerException
      at com.sun.tools.javac.nio.JavacPathFileManager$1.preVisitDirectory(JavacPathFileManager.java:379)
      at com.sun.tools.javac.nio.JavacPathFileManager$1.preVisitDirectory(JavacPathFileManager.java:376)
      at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:191)
      at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:69)
      at java.nio.file.Files.walkFileTree(Files.java:226)
      at com.sun.tools.javac.nio.JavacPathFileManager.list(JavacPathFileManager.java:375)
      at com.sun.tools.javac.nio.JavacPathFileManager.list(JavacPathFileManager.java:321)
      at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2567)
      at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:2270)
      at com.sun.tools.javac.code.Symbol.complete(Symbol.java:433)
      at com.sun.tools.javac.comp.Enter.visitTopLevel(Enter.java:300)
      at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:459)
      at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:260)
      at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:274)
      at com.sun.tools.javac.comp.Enter.complete(Enter.java:486)
      at com.sun.tools.javac.comp.Enter.main(Enter.java:471)
      at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:906)
      at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:801)
      at com.sun.tools.javac.main.Main.compile(Main.java:418)
      at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:136)
      at CompileTest.test(CompileTest.java:106)
      at CompileTest.run(CompileTest.java:71)
      at CompileTest.main(CompileTest.java:45)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:613)
      at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:680)
      at java.lang.Thread.run(Thread.java:732)

      java.lang.Exception: compilation failed
      at CompileTest.test(CompileTest.java:109)
      at CompileTest.run(CompileTest.java:71)
      at CompileTest.main(CompileTest.java:45)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:613)
      at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:680)
      at java.lang.Thread.run(Thread.java:732)

      JavaTest Message: Test threw exception: java.lang.Exception
      JavaTest Message: shutting down test


      TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.Exception: compilation failed

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: