Skip to content

Reading annotations in ConfigurationClassParser does not fall back to ASM on Google App Engine [SPR-16564] #21106

@spring-projects-issues

Description

@spring-projects-issues

Madhura Bhave opened SPR-16564 and commented

ConfigurationClassParser has a sanity test to ensure that annotations can be read and in case of an Exception, it falls back to ASM. On Google App Engine classType.getAnnotations() does not throw an Exception if a class is not found and instead the annotation value looks something like this value=sun.reflect.annotation.TypeNotPresentExceptionProxy.

This causes unexpected behavior in Spring Boot's OnClassCondition as the metadata is not an AnnotationMetadataReadingVisitor.


Affects: 4.3.14, 5.0.4

Issue Links:

Referenced from: commits 7cafa67, 967a2ef, 50e980c

Backported to: 4.3.15

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions