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 f11a3cb1d8795606513981967975f22d7b14ac4a
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Aug 9 18:37:23 2026 -0400

    Some TarArchiveEntry code now throw ArchiveException instead of
    IllegalArgumentException.
    
    - Add and use ArchiveException.requireNonNegative(int, String)
    - Add and use ArchiveException.requireNonNegative(int, Supplier<String>)
    - Add and use ArchiveException.requireNonNegative(long, String)
    - Add and use ArchiveException.requireNonNegative(long,
    Supplier<String>)
    - The following TarArchiveEntry methods now throw ArchiveException
    instead of IllegalArgumentException
      - setDataOffset(long)
      - setDevMajor(int)
      - setDevMinor(int)
      - setSize(long)
---
 src/changes/changes.xml | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 1e1c52ab6..955b3500c 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -160,6 +160,14 @@ The <action> type attribute can be add,update,fix,remove.
       <action type="fix" dev="ggregory" due-to="Gary 
Gregory">org.apache.commons.compress.utils.ParsingUtils should set the cause of 
the exceptions it throws.</action>
       <action type="fix" dev="ggregory" due-to="Gary Gregory">Add messages 
when throwing NullPointerException.</action>
       <action type="fix" dev="ggregory" due-to="Gary 
Gregory">CompressException.requireNonNull(Class, T, Supplier) didn't throw on 
null.</action>
+      <action type="fix" dev="ggregory" due-to="Gary Gregory">Add and use 
ArchiveException.requireNonNegative(int, String)</action>
+      <action type="fix" dev="ggregory" due-to="Gary Gregory">Add and use 
ArchiveException.requireNonNegative(int, Supplier&lt;String&gt;)</action>
+      <action type="fix" dev="ggregory" due-to="Gary Gregory">Add and use 
ArchiveException.requireNonNegative(long, String)</action>
+      <action type="fix" dev="ggregory" due-to="Gary Gregory">Add and use 
ArchiveException.requireNonNegative(long, Supplier&lt;String&gt;)</action>
+      <action type="fix" dev="ggregory" due-to="Gary 
Gregory">TarArchiveEntry.setDataOffset(long) now throw ArchiveException instead 
of IllegalArgumentException.</action>
+      <action type="fix" dev="ggregory" due-to="Gary 
Gregory">TarArchiveEntry.setDevMajor(int) now throw ArchiveException instead of 
IllegalArgumentException.</action>
+      <action type="fix" dev="ggregory" due-to="Gary 
Gregory">TarArchiveEntry.setDevMinor(int) now throw ArchiveException instead of 
IllegalArgumentException.</action>
+      <action type="fix" dev="ggregory" due-to="Gary 
Gregory">TarArchiveEntry.setSize(long) now throw ArchiveException instead of 
IllegalArgumentException.</action>
       <!-- ADD -->
       <action type="add" dev="ggregory" due-to="Gary Gregory">Add 
MemoryLimitException.MemoryLimitException(long, long).</action>
       <action type="add" dev="ggregory" due-to="Gary Gregory">Add 
CompressException.CompressException(String, Object...).</action>

Reply via email to