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-jexl.git
The following commit(s) were added to refs/heads/master by this push:
new edb56728 Test now restores the current thread's interrupt flag after
catching InterruptedException
edb56728 is described below
commit edb56728fb0d7eba94f5f77903339452eb5c156f
Author: Gary Gregory <[email protected]>
AuthorDate: Wed Jan 28 16:10:24 2026 -0500
Test now restores the current thread's interrupt flag after
catching InterruptedException
---
src/test/java/org/apache/commons/jexl3/CachePerformanceTest.java | 1 +
src/test/java/org/apache/commons/jexl3/SynchronizedArithmetic.java | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/test/java/org/apache/commons/jexl3/CachePerformanceTest.java
b/src/test/java/org/apache/commons/jexl3/CachePerformanceTest.java
index c88f1f65..d9265b5a 100644
--- a/src/test/java/org/apache/commons/jexl3/CachePerformanceTest.java
+++ b/src/test/java/org/apache/commons/jexl3/CachePerformanceTest.java
@@ -83,6 +83,7 @@ class CachePerformanceTest {
}
return count;
} catch (final InterruptedException e) {
+ Thread.currentThread().interrupt();
throw new RuntimeException(e);
}
}
diff --git a/src/test/java/org/apache/commons/jexl3/SynchronizedArithmetic.java
b/src/test/java/org/apache/commons/jexl3/SynchronizedArithmetic.java
index ff840f25..63ed86b5 100644
--- a/src/test/java/org/apache/commons/jexl3/SynchronizedArithmetic.java
+++ b/src/test/java/org/apache/commons/jexl3/SynchronizedArithmetic.java
@@ -100,7 +100,7 @@ public class SynchronizedArithmetic extends JexlArithmetic {
}
}
} catch (final InterruptedException xint) {
- // oops
+ Thread.currentThread().interrupt();
}
}