This is an automated email from the ASF dual-hosted git repository.
aldettinger pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new cbb2634573 remove exception reflective registration and verify with
test (#8505)
cbb2634573 is described below
commit cbb2634573c88a2ae2e8a260d66491a7bfe21f7b
Author: JinyuChen97 <[email protected]>
AuthorDate: Fri Apr 10 12:11:23 2026 +0100
remove exception reflective registration and verify with test (#8505)
fixes #7608
---
.../camel/quarkus/component/shiro/deployment/ShiroProcessor.java | 3 ---
.../src/main/java/org/apache/camel/quarkus/main/CustomException.java | 3 ---
.../java/org/apache/camel/quarkus/component/mllp/it/MllpRoutes.java | 2 --
3 files changed, 8 deletions(-)
diff --git
a/extensions/shiro/deployment/src/main/java/org/apache/camel/quarkus/component/shiro/deployment/ShiroProcessor.java
b/extensions/shiro/deployment/src/main/java/org/apache/camel/quarkus/component/shiro/deployment/ShiroProcessor.java
index e1425d55f9..31322e8279 100644
---
a/extensions/shiro/deployment/src/main/java/org/apache/camel/quarkus/component/shiro/deployment/ShiroProcessor.java
+++
b/extensions/shiro/deployment/src/main/java/org/apache/camel/quarkus/component/shiro/deployment/ShiroProcessor.java
@@ -31,7 +31,6 @@ import io.quarkus.deployment.builditem.CombinedIndexBuildItem;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.IndexDependencyBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
-import org.apache.camel.CamelAuthorizationException;
import org.apache.shiro.lang.ShiroException;
import org.jboss.jandex.DotName;
@@ -55,8 +54,6 @@ class ShiroProcessor {
.filter(n -> n.startsWith("org.apache.shiro.auth"))
.collect(Collectors.toList());
- reflectiveClasses.add(CamelAuthorizationException.class.getName());
-
// commons-beanutils converter types and their array counterparts need
to be registered for reflection
reflectiveClasses.add(BigDecimal.class.getName());
reflectiveClasses.add(BigDecimal[].class.getName());
diff --git
a/integration-tests/main-yaml/src/main/java/org/apache/camel/quarkus/main/CustomException.java
b/integration-tests/main-yaml/src/main/java/org/apache/camel/quarkus/main/CustomException.java
index ea96c6b274..669bd5ab2f 100644
---
a/integration-tests/main-yaml/src/main/java/org/apache/camel/quarkus/main/CustomException.java
+++
b/integration-tests/main-yaml/src/main/java/org/apache/camel/quarkus/main/CustomException.java
@@ -16,9 +16,6 @@
*/
package org.apache.camel.quarkus.main;
-import io.quarkus.runtime.annotations.RegisterForReflection;
-
-@RegisterForReflection
public class CustomException extends Exception {
public CustomException() {
}
diff --git
a/integration-tests/mllp/src/main/java/org/apache/camel/quarkus/component/mllp/it/MllpRoutes.java
b/integration-tests/mllp/src/main/java/org/apache/camel/quarkus/component/mllp/it/MllpRoutes.java
index 026b6a98ad..2d2982d116 100644
---
a/integration-tests/mllp/src/main/java/org/apache/camel/quarkus/component/mllp/it/MllpRoutes.java
+++
b/integration-tests/mllp/src/main/java/org/apache/camel/quarkus/component/mllp/it/MllpRoutes.java
@@ -16,13 +16,11 @@
*/
package org.apache.camel.quarkus.component.mllp.it;
-import io.quarkus.runtime.annotations.RegisterForReflection;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.mllp.MllpConstants;
import org.apache.camel.component.mllp.MllpInvalidMessageException;
import org.eclipse.microprofile.config.ConfigProvider;
-@RegisterForReflection(targets = MllpInvalidMessageException.class, fields =
false)
public class MllpRoutes extends RouteBuilder {
public static final String MLLP_HOST = "localhost";