davsclaus commented on code in PR #20357:
URL: https://github.com/apache/camel/pull/20357#discussion_r2610281727


##########
core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/AbstractCamelContext.java:
##########
@@ -2336,7 +2338,7 @@ public void doBuild() throws Exception {
 
         // auto-detect step recorder from classpath if none has been explicit 
configured
         StartupStepRecorder startupStepRecorder = 
camelContextExtension.getStartupStepRecorder();
-        if 
(startupStepRecorder.getClass().getSimpleName().equals("DefaultStartupStepRecorder"))
 {
+        if (startupStepRecorder instanceof DefaultStartupStepRecorder) {

Review Comment:
   this is wrong in the sense that custom startup recorders will extend the 
default and as such this logic is not the same (see camel-jfr)



-- 
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]

Reply via email to