RFR: 8272908: Missing coverage for certain classes in com.sun.org.apache.xml.internal.security

Rajan Halade rhalade at openjdk.java.net
Wed Oct 13 16:20:48 UTC 2021


On Tue, 12 Oct 2021 17:04:27 GMT, Fernando Guallini <fguallini at openjdk.org> wrote:

> This patch improves code coverage on the following classes:
> - com.sun.org.apache.xml.internal.security.algorithms.implementations.IntegrityHmac
> - com.sun.org.apache.xml.internal.security.utils.ElementProxy
> - com.sun.org.apache.xml.internal.security.keys.KeyInfo
> 
> The new tests exercise code blocks that are not currently covered by other tests.

test/jdk/com/sun/org/apache/xml/internal/security/SignatureKeyInfo.java line 117:

> 115:                 doc.getElementsByTagNameNS(NS, "Signature");
> 116:         if (nl.getLength() == 0) {
> 117:             throw new Exception("Could not find signature Element");

update this to RuntimeException

-------------

PR: https://git.openjdk.java.net/jdk/pull/5913


More information about the security-dev mailing list