United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6883983 JarVerifier dependency on sun.security.pkcs should be removed
JDK-6883983 : JarVerifier dependency on sun.security.pkcs should be removed

Details
Type:
Bug
Submit Date:
2009-09-21
Status:
Resolved
Updated Date:
2010-05-09
Project Name:
JDK
Resolved Date:
2009-10-24
Component:
core-libs
OS:
generic
Sub-Component:
java.util.jar
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports

Sub Tasks

Description
java.util.jar.JarVerifier contains the following code:

	    } catch (sun.security.pkcs.ParsingException pe) {
                if (debug != null) debug.println("processEntry caught: "+pe);
                // ignore and treat as unsigned
            } catch (IOException ioe) {
                if (debug != null) debug.println("processEntry caught: "+ioe);
                // ignore and treat as unsigned

This dependency on a provider specific class should be removed.

                                    

Comments
SUGGESTED FIX

sun.security.pkcs.ParsingException extends java.io.IOException so the catch clause
at l.296 of JarVerifier.java can safely be removed.
                                     
2009-10-05
EVALUATION

This undesirable dependency should be removed.
                                     
2009-10-13



Hardware and Software, Engineered to Work Together