This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch 3.2
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.2 by this push:
new ff561616e5 Fix Jakarta exception being casted in ExceptionFilter
(#13054)
ff561616e5 is described below
commit ff561616e506be4871933fae7b05c661fcfb88af
Author: shj1995 <[email protected]>
AuthorDate: Mon Sep 18 11:40:06 2023 +0800
Fix Jakarta exception being casted in ExceptionFilter (#13054)
Co-authored-by: 石豪杰 <[email protected]>
---
.../src/main/java/org/apache/dubbo/rpc/filter/ExceptionFilter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/filter/ExceptionFilter.java
b/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/filter/ExceptionFilter.java
index 2cadfec117..9265bad595 100644
---
a/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/filter/ExceptionFilter.java
+++
b/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/filter/ExceptionFilter.java
@@ -92,7 +92,7 @@ public class ExceptionFilter implements Filter,
Filter.Listener {
}
// directly throw if it's JDK exception
String className = exception.getClass().getName();
- if (className.startsWith("java.") ||
className.startsWith("javax.")) {
+ if (className.startsWith("java.") ||
className.startsWith("javax.") || className.startsWith("jakarta.")) {
return;
}
// directly throw if it's dubbo exception