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

Compiling fails with java.nio.file.ReadOnlyFileSystemException

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      linux

      Description

      FULL PRODUCT VERSION :
      javac 9.0.4

      ADDITIONAL OS VERSION INFORMATION :
      Kernel: Linux middleearth 4.14.27-gentoo #1 SMP Tue Mar 20 09:47:26 CET 2018 x86_64 GNU/Linux
      Userspace: Debian i386

      A DESCRIPTION OF THE PROBLEM :
      compilation bails out with java.nio.file.ReadOnlyFileSystemException


      For additional info see
      https://buildd.debian.org/status/fetch.php?pkg=gdcm&arch=x32&ver=2.8.4-1%2Bb1&stamp=1521789107&raw=0


      REGRESSION. Last worked in version 8u162

      ADDITIONAL REGRESSION INFORMATION:
      javac 1.8.0_162


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Compile the Debian package gdcm in a clean changeroot using the latest version of openjdk-9

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      package builds
      ACTUAL -
      Package fails to build

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      An exception has occurred in the compiler (9.0.4). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
      java.nio.file.ReadOnlyFileSystemException
      at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.checkWritable(ZipFileSystem.java:147)
      at jdk.zipfs/jdk.nio.zipfs.ZipFileSystem.newOutputStream(ZipFileSystem.java:499)
      at jdk.zipfs/jdk.nio.zipfs.ZipPath.newOutputStream(ZipPath.java:840)
      at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.newOutputStream(ZipFileSystemProvider.java:283)
      at java.base/java.nio.file.Files.newOutputStream(Files.java:218)
      at jdk.compiler/com.sun.tools.javac.file.PathFileObject.openOutputStream(PathFileObject.java:459)
      at jdk.compiler/com.sun.tools.javac.jvm.ClassWriter.writeClass(ClassWriter.java:1677)
      at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:743)
      at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1621)
      at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1589)
      at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:959)
      at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:302)
      at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:162)
      at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:57)
      at jdk.compiler/com.sun.tools.javac.Main.main(Main.java:43)
      make[4]: *** [Utilities/VTK/CMakeFiles/VTKGDCMJavaJar.dir/build.make:64: bin/vtkgdcm.jar] Erro


      REPRODUCIBILITY :
      This bug can be reproduced often.

        Attachments

          Activity

            People

            • Assignee:
              jjg Jonathan Gibbons
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: