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


##########
core/camel-base/src/main/java/org/apache/camel/impl/converter/CoreTypeConverterRegistry.java:
##########
@@ -64,7 +64,8 @@ public <T> T convertTo(Class<T> type, Exchange exchange, 
Object value) throws Ty
     // special enum converter for optional performance
     protected final TypeConverter enumTypeConverter = new EnumTypeConverter();
 
-    private final ConverterStatistics statistics;
+    // not final: the registry is created when the CamelContext is built, 
which can be before the option is set
+    private volatile ConverterStatistics statistics;

Review Comment:
   Fixed in 2943f9199 and later: the registry, `SimpleCamelContext` and the 
Javadoc are back as on main, and Camel Main applies the option before 
`build()`. Thanks!
   
   _Claude Code on behalf of davsclaus_



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