This is an automated email from the ASF dual-hosted git repository. garydgregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-compress.git
commit 7512499f9346c9928754dec36e62d30f5a8f4b71 Author: Gary Gregory <[email protected]> AuthorDate: Tue Aug 11 14:18:45 2026 -0400 [Cpio] CpioArchiveOutputStream now throws ArchiveException instead of IllegalArgumetException/IllegalStateException. --- src/changes/changes.xml | 1 + .../apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index ca6c6c6d4..e8788089f 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -144,6 +144,7 @@ The <action> type attribute can be add,update,fix,remove. <action type="fix" dev="ggregory" due-to="Christopher Linke, Gary Gregory">[Cpio] Throw ArchiveException instead of EOFException when CPIO name size less than or equal to 0 #771.</action> <action type="fix" dev="ggregory" due-to="Gary Gregory">[Cpio] CpioArchiveEntry now throws ArchiveException instead of IllegalArgumetException/IllegalStateException.</action> <action type="fix" dev="ggregory" due-to="Gary Gregory">[Cpio] CpioArchiveInputStream now throws ArchiveException instead of IllegalArgumetException/IllegalStateException.</action> + <action type="fix" dev="ggregory" due-to="Gary Gregory">[Cpio] CpioArchiveOutputStream now throws ArchiveException instead of IllegalArgumetException/IllegalStateException.</action> <!-- FIX gzip --> <action type="fix" dev="ggregory" due-to="Gary Gregory">[GZip] GzipParameters.setOperatingSystem(int) now throws CompressorException on illegal input.</action> <action type="fix" issue="COMPRESS-705" dev="ggregory" due-to="Mario Fredenhagen, Gary Gregory">[GZip] GZip IOException: Extra subfield length exceeds remaining bytes in extra field; use new option GzipCompressorInputStream.Builder.setIgnoreExtraField(boolean).</action> diff --git a/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java b/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java index cd20b3427..ed598de52 100644 --- a/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java +++ b/src/main/java/org/apache/commons/compress/archivers/cpio/CpioArchiveOutputStream.java @@ -139,6 +139,7 @@ public CpioArchiveOutputStream(final OutputStream out, final short format, final * @param format The format of the stream. * @param blockSize The block size of the archive. * @param encoding The encoding of file names to write - use null for the platform's default. + * @throws IllegalArgumentException if the format is unknown. * @since 1.6 */ public CpioArchiveOutputStream(final OutputStream out, final short format, final int blockSize, final String encoding) {
