zhfeng commented on code in PR #8508:
URL: https://github.com/apache/camel-quarkus/pull/8508#discussion_r3052295234
##########
extensions-core/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelNativeImageProcessor.java:
##########
@@ -285,4 +299,133 @@ void reflectiveRoutes(
});
}
+ /**
+ * Scans RouteBuilder bytecode to auto-detect exception classes used in
onException() and doCatch() calls, and
+ * registers them for reflection. This is needed because Camel stores
exception class names as strings in the route
+ * model and resolves them back to Class objects at runtime via
ClassLoader.loadClass().
+ *
+ * @see <a
href="https://github.com/apache/camel-quarkus/issues/7841">camel-quarkus#7841</a>
+ */
+ @BuildStep
+ void registerOnExceptionClassesForReflection(
Review Comment:
`@BuildStep(onlyIf = NativeOrNativeSourcesBuild.class)` could be good?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]