JDK-6907367 : extcheck should skip non-jar files
  • Type: Bug
  • Component: tools
  • Sub-Component: jar
  • Affected Version: 6-rev-pool
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: generic
  • CPU: generic
  • Submitted: 2009-12-04
  • Updated: 2013-04-15
  • Resolved: 2013-04-15
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 JDK 8
7-poolResolved 8Resolved
Related Reports
Relates :  
Relates :  
Description
Running extcheck with arbitrary rt.jar, for example rt.jar yields an IO exception

Observed  on Solaris and Windows (did not check on Linux)

>  extcheck -J-showversion -verbose /local/jdk6_14/jre/lib/rt.jar
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Server VM (build 14.0-b16, mixed mode)
 
Target file:/local/jdk6_14/jre/lib/rt.jar
Specification title:Java Platform API Specification
Specification version:1.6
Specification vendor:Sun Microsystems, Inc.
Implementation version:1.6.0_14
Implementation vendor:Sun Microsystems, Inc.
 
Comparing with file:/local/jdk6_14/jre/lib/ext/sunjce_provider.jar
Comparing with file:/local/jdk6_14/jre/lib/ext/sunpkcs11.jar
Comparing with file:/local/jdk6_14/jre/lib/ext/dnsns.jar
Comparing with file:/local/jdk6_14/jre/lib/ext/localedata.jar
Comparing with file:/local/jdk6_14/jre/lib/ext/meta-index
IO Exception occurred

This is observed with JDK 6 and latest jdk7

Comments
EVALUATION The suggested fix appears reasonable.
17-06-2011

EVALUATION The "meta-index", which is obviously not a jar file, triggers the "IOException".
04-01-2011