JDK-6907660 : stupid typo in ZipFileIndex guarantees NPE
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-12-05
  • Updated: 2011-07-25
  • Resolved: 2011-07-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 Other
7 b78Fixed OpenJDK6Fixed
Description
The following code at line 1005 of ZipFileIndex is clearly wrong.

                            if (raf == null) {
                                raf.close();
                            }

== should be !=

Comments
EVALUATION A tricky fix (not.)
05-12-2009