Skip to content

Refactor AnnotationUtils#findAllAnnotationAttributes to accommodate non-default class loader [SPR-8752] #13394

@spring-projects-issues

Description

@spring-projects-issues

Ittay Dror opened SPR-8752 and commented

Line 347:
MetadataReader reader = new SimpleMetadataReaderFactory().getMetadataReader(annotatedClassName);

This creates a MetadataReader that uses the default class loader. But the class name may be from a different class loader. This causes a failure later on when trying to load the class name


Affects: 3.1 M2

Referenced from: commits 6837111

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions