RFR: 8300259: Add test coverage for processing of pending block files in signed JARs [v2]

Eirik Bjorsnos duke at openjdk.org
Tue Jan 17 18:54:16 UTC 2023


On Tue, 17 Jan 2023 18:15:21 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Eirik Bjorsnos has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - Make it more clear in the @summary tag that it is the block file that is pending, not the signature file
>>  - Renamed test from PendingBlocksJar to more descriptive SignedJarPendingBlock
>
> test/jdk/java/util/jar/JarFile/PendingBlocksJar.java line 45:
> 
>> 43: import java.util.zip.ZipOutputStream;
>> 44: 
>> 45: public class PendingBlocksJar {
> 
> Would it be possible to rename this to something like SignedJarPendingBlocks or something like that so that it's clear that this is a test for signed JARs? Or maybe we created a sub-directory and move the tests for signed JARs there.

Thanks Alan, I've renamed to 'SignedJarPendingBlock' for now!

Not sure I feel familiar enough with the code base to have a strong opinion on moving to a subdirectory. The majority (albeit small) of the tests in this folder seems to already be somehow signature-related.

Moving them in this PR would introduce conflicts with some other ongoing PRs in this area though.  Perhaps work for a separate, later PR?

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

PR: https://git.openjdk.org/jdk/pull/12009



More information about the security-dev mailing list