Skip to content

Further improve AnnotationAttributes.toString() #37396

Closed

Description

@sbrannen

Overview

While writing tests for AnnotationAttributes.toString() in cd21915, I noticed we output strings containing things like classes=[class java.lang.Number, interface java.lang.Runnable]; whereas, in SynthesizedMergedAnnotationInvocationHandler.toString(Object) we use ClassUtils.getCanonicalName().

In SynthesizedMergedAnnotationInvocationHandler we also use Enum.name() instead of Enum.toString().

To improve diagnostics we should further revise the toString() implementation in AnnotationAttributes.

Related Issues

Activity

  1. added this to the 7.1.0-RC1 milestone on Oct 5, 2026
  2. self-assigned this
    on Oct 5, 2026
  3. added
    in: coreIssues in core modules (aop, beans, core, context, expression)
    on Oct 5, 2026
  4. added a commit that references this issue on Oct 5, 2026
    055766e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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