Skip to content

MergedAnnotation.asMap() fails when an attribute references a non-existent class #36586

Closed

Description

@sbrannen

Overview

As explained in #36524 (comment), MergedAnnotation.asAnnotationAttributes() and MergedAnnotation.asMap() fail when an annotation attribute references a non-existent class.

This is a regression that was introduced in Spring Framework 5.2 when the MergedAnnotations API was introduced; however, since this has gone undetected for so long, we have decided to address this in 7.0.x.

Related Issues

Activity

  1. added this to the 7.0.7 milestone on Apr 2, 2026
  2. self-assigned this
    on Apr 2, 2026
  3. added
    type: regression
    in: core
    on Apr 2, 2026
  4. changed the title [-]`MergedAnnotation.asAnnotationAttributes()` fails when an attribute references a non-existent class[/-] [+]`MergedAnnotation.asMap()` fails when an attribute references a non-existent class[/+] on Apr 2, 2026
  5. added 2 commits that reference this issue on Apr 3, 2026
    101e6c8
    d10460d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: coretype: regression

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions