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

centic9 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git

commit 4b02cc81017bad2d932a930c1410e2d68a4d91c2
Author: Dominik Stadler <[email protected]>
AuthorDate: Fri Oct 30 10:38:15 2026 +0100

    Switch type of exception that is thrown
    
    IllegalAccessError is for issues with reflection/permission,
    better use a normal IllegalArgumentException here.
---
 poi/src/main/java/org/apache/poi/ss/formula/eval/ConcatEval.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/poi/src/main/java/org/apache/poi/ss/formula/eval/ConcatEval.java 
b/poi/src/main/java/org/apache/poi/ss/formula/eval/ConcatEval.java
index b347d7a603..eea9b83977 100644
--- a/poi/src/main/java/org/apache/poi/ss/formula/eval/ConcatEval.java
+++ b/poi/src/main/java/org/apache/poi/ss/formula/eval/ConcatEval.java
@@ -64,7 +64,7 @@ public final class ConcatEval  extends Fixed2ArgFunction 
implements ArrayFunctio
         if (ve == BlankEval.instance) {
             return "";
         }
-        throw new IllegalAccessError("Unexpected value type ("
+        throw new IllegalArgumentException("Unexpected value type ("
                     + ve.getClass().getName() + ")");
     }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to