This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-compress.git

commit ff86a094800c7488254833e1cd15bb84c9dadf7c
Author: Gary D. Gregory <garydgreg...@gmail.com>
AuthorDate: Fri Apr 25 09:08:22 2025 -0400

    MemoryLimitException now extends CompressException instead of
    IOException (CompressException extends IOException)
---
 src/changes/changes.xml                                             | 3 ++-
 src/main/java/org/apache/commons/compress/MemoryLimitException.java | 4 +---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index f0e23bcfa..ddab3b63c 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -89,7 +89,8 @@ The <action> type attribute can be add,update,fix,remove.
       <action type="fix" dev="ggregory" due-to="Alexis Jehan, Gary 
Gregory">org.apache.commons.compress.harmony.unpack200.Archive.unpack() should 
not log to system out (the console).</action>
       <action type="fix" dev="Sebb" due-to="aSemy">[site] Fix minor zip docs 
type: remove extraneous 'a' #665.</action>
       <action type="fix" dev="ggregory" due-to="Zaki, Gary Gregory">Throw a 
better exception in 
org.apache.commons.compress.archivers.sevenz.SevenZFile.readFilesInfo(ByteBuffer,
 Archive).</action>
-      <action type="fix" dev="ggregory" due-to="Gary 
Gregory">DumpArchiveException now extends ArchiveException instead of 
IOException (ArchiveException extends IOException).</action>
+      <action type="fix" dev="ggregory" due-to="Gary 
Gregory">MemoryLimitException now extends CompressException instead of 
IOException (CompressException extends IOException).</action>
+      <action type="fix" dev="ggregory" due-to="Gary 
Gregory">DumpArchiveException now extends ArchiveException instead of 
IOException (ArchiveException extends CompressException).</action>
       <!-- ADD -->
       <action type="add" dev="ggregory" due-to="Gary Gregory">Add 
GzipParameters.getModificationInstant().</action>
       <action type="add" dev="ggregory" due-to="Gary Gregory">Add 
GzipParameters.setModificationInstant(Instant).</action>
diff --git 
a/src/main/java/org/apache/commons/compress/MemoryLimitException.java 
b/src/main/java/org/apache/commons/compress/MemoryLimitException.java
index 6527876f1..d779b3b5d 100644
--- a/src/main/java/org/apache/commons/compress/MemoryLimitException.java
+++ b/src/main/java/org/apache/commons/compress/MemoryLimitException.java
@@ -18,15 +18,13 @@
  */
 package org.apache.commons.compress;
 
-import java.io.IOException;
-
 /**
  * If a stream checks for estimated memory allocation, and the estimate goes 
above the memory limit, this is thrown. This can also be thrown if a stream 
tries
  * to allocate a byte array that is larger than the allowable limit.
  *
  * @since 1.14
  */
-public class MemoryLimitException extends IOException {
+public class MemoryLimitException extends CompressException {
 
     private static final long serialVersionUID = 1L;
 

Reply via email to