lobtx opened a new pull request, #31286:
URL: https://github.com/apache/camel/pull/31286

   # Description
   
   Follow-up of #31195, with the three optional points of its review.
   
   ## Changes
   
   - `isEarlyEnabled` and `lookupEarlyOption` share a small helper, 
`parseEarlyBoolean`, for the empty, placeholder and parse steps, so they cannot 
drift apart. No change of behaviour.
   - The WARN logged when 
`camel.main.autoConfigurationEnvironmentVariablesEnabled` or 
`camel.main.autoConfigurationSystemPropertiesEnabled` has a property 
placeholder now names the options it affects, and uses the same wording as the 
WARN of the early options themselves:
   
         The option 
camel.main.autoConfigurationSystemPropertiesEnabled={{sysEnabled}} is ignored, 
as it must be known before the CamelContext is built, which is before property 
placeholders can be resolved, so camel.main.virtualThreadsEnabled and 
camel.main.typeConverterStatisticsEnabled are still read from the JVM system 
properties. Use true or false instead.
   
   - `camel-4x-upgrade-guide-4_25.adoc` tells that these two options now ignore 
a disabled ENV or SYS source, for example 
`CAMEL_MAIN_VIRTUALTHREADSENABLED=true` with the OS environment variables 
disabled.
   
   ## Tests
   
   `MainEarlyOptionsPlaceholderWarningTest` checks the WARN messages: a 
placeholder in a source flag (source still read, or not read when the flag is 
set to false in code), and in an early option. The first test fails on main 
with the old wording; the early option one passes on main too, as the 
refactoring keeps that message. The camel-main tests pass (372), and a 
standalone Camel Main application shows the same behaviour as before, with the 
new WARN.
   
   AI tool used: Claude Code (Claude Opus 5.5), reviewed and checked by me.
   
   _Claude Code on behalf of lobtx_


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