2748109647 opened a new pull request, #4493:
URL: https://github.com/apache/logging-log4j2/pull/4493

   Fixes #4492
   
   `CompositeConfiguration.reconfigure()` currently recreates every URI-backed 
child through the active `ConfigurationFactory`. This drops behavior supplied 
by custom child configuration classes and configurations created by a different 
factory.
   
   When a child implements `Reconfigurable`, call that child's reconfigure 
method. Keep the factory lookup for other configuration types and preserve the 
existing handling for children without a URI. The regression test uses a 
file-backed custom `XmlConfiguration` and checks that its `setup()` and 
`postConfigure()` contributions survive a composite reload.
   
   No public API changes.
   
   ## Validation
   
   - `mvnw.cmd -B -ntp -pl :log4j-core-test -am 
-Dtest=CompositeConfigurationPostConfigureTest,CompositeConfigurationMissingTest
 -Dsurefire.failIfNoSpecifiedTests=false -DskipITs test` — passed; 4 tests, JDK 
17.
   - `mvnw.cmd -B -ntp -pl :log4j-core-test spotless:check` — passed.
   - `mvnw.cmd -B -ntp -pl :log4j-core-test apache-rat:check` — passed.
   - Changelog validation passed during the reactor build.
   
   A targeted `verify` run did not complete cleanly in this Windows 
environment: RAT reported an empty `${filename}` file under `log4j-core-test`. 
I removed that generated file; the standalone RAT check then passed. I am not 
claiming a clean full `verify` run.


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