Skip to content

Refine ConstantFieldSubstitutionProcessor error handling #29219

Closed
@sdeleuze

Description

@sdeleuze

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 the service.isAssignableFrom(clazz) invocation in java.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.

Metadata

Metadata

Assignees

Labels

theme: aotAn issue related to Ahead-of-time processingtype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions