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

javac crashes when a specific system option is set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P1
    • Resolution: Fixed
    • Affects Version/s: 6u25
    • Fix Version/s: 6u25
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Introduced In Build:
      b02
    • Introduced In Version:
    • Resolved In Build:
      b06
    • CPU:
      x86
    • OS:
      linux

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: