javac crashes when a specific system option is set

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P1
    • 6u25
    • Affects Version/s: 6u25
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: