JDK-6236704 : bad jar files ignored in extension and endorsed dirs
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-03-06
  • Updated: 2017-05-16
  • Resolved: 2006-03-23
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 6
6 b78Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
I noticed that com.sun.tools.javac.jvm.ClassReader.list ignores IOExceptions.
This leads javac to ignore bad jar files found in ext and endoresed dirs.  Errors
should never be silently ignored as they can help users diagnose problems.

###@###.### 2005-03-06 23:38:53 GMT

Comments
SUGGESTED FIX Index: com/sun/tools/javac/jvm/ClassReader.java @@ -1753,9 +1753,8 @@ try { archive = openArchive(directory); } catch (IOException ex) { - // See 6236704, awaiting CCC approval - // log.error(Position.NOPOS, "error.reading.file", - // directory, ex.getLocalizedMessage()); + log.error(Position.NOPOS, "error.reading.file", + directory, ex.getLocalizedMessage()); return; } if (subdirectory.length() != 0) { ###@###.### 2005-05-18 02:26:20 GMT
18-05-2005

EVALUATION This should be addressed in mustang. ###@###.### 2005-03-06 23:44:12 GMT
06-03-2005