Refine ConstantFieldSubstitutionProcessor
error handling
#29219
Labels
Milestone
ConstantFieldSubstitutionProcessor
error handling
#29219
The upgrade to SLF4J 2 via #29152 has broken
ConstantFieldSubstitutionProcessor
when the class processed has both a static boolean field to make constant at build time and a static logger. The reason seems to be the usage of different classloaders so theservice.isAssignableFrom(clazz)
invocation injava.util.ServiceLoader.LazyClassPathLookupIterator#hasNextService
fails.This issue is about catching and logging those error, skipping the processing of such fields which will be then evaluated at runtime.
The text was updated successfully, but these errors were encountered: