Skip to content

Conversation

@MBoegers
Copy link
Contributor

@MBoegers MBoegers commented Jan 8, 2025

What's changed?

What's your motivation?

Application Frameworks like Spring often user enums for annotation attributes to restrict the possible values.
Often these enums are defined within the annotation class itself as inner enums.
Traits canot work 100% in this cases.

Anything in particular you'd like reviewers to focus on?

There is a new ToDo this line is the problem.
The root problem seems to be that the type of FieldAccess for inner enums is not set correctly.

Anyone you would like to review specifically?

Have you considered any alternatives or workarounds?

Add adtional checks in the visitor methods.

Any additional context

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

…butes are not detectable by AnnotationMatchers
@MBoegers MBoegers marked this pull request as draft January 8, 2025 12:30
@timtebeek timtebeek changed the title Annotaion Matcher with inner Enums as Attribute Values Annotation Matcher with inner Enums as Attribute Values Jan 8, 2025
@github-actions
Copy link
Contributor

This PR is stale because it has been open for 90 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Jun 16, 2025
@github-actions github-actions bot closed this Jun 23, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant