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

javac crashes when a specific system option is set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P1 P1
    • 6u25
    • 6u25
    • tools
    • b02
    • b06
    • x86
    • linux

      When compiling using the useJavaUtilZip=true system option (that disables caching of the zip file indices in memory), the 6u25 javac crashes:
      $ ./jdk1.6.0_25/bin/javac -J-DuseJavaUtilZip=true Test.java
      error: error reading /tmp/jdk1.6.0_25/jre/lib/sunrsasign.jar; error in opening zip file
      1 error

      The javac version is:
      $ ./jdk1.6.0_25/bin/javac -fullversion
      javac full version "1.6.0_25-b05"

      NetBeans is using this system option to prevent leaking memory through the zip file index cache: when a project is built inside NetBeans, the javac is run in the same VM to speed-up the building of small projects.

            jjh James Holmlund (Inactive)
            jlahoda Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: