Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reinstate support for legacy JSR-250 @javax.annotation.ManagedBean and JSR-330 @javax.inject.Named annotations #31090

Closed
4 tasks done
sbrannen opened this issue Aug 22, 2023 · 1 comment
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@sbrannen
Copy link
Member

sbrannen commented Aug 22, 2023

With the migration to Jakarta annotations in 6.0, we switched to supporting @jakarta.annotation.ManagedBean and @jakarta.inject.Named annotations for component scanning and component name lookups.

To better assist projects in the migration to Spring 6+, we should reinstate support for the legacy JSR-250 @javax.annotation.ManagedBean and JSR-330 @javax.inject.Named annotations so that existing compiled code will continue to work as expected.

Related Issues

Deliverables

  • Support @javax.annotation.ManagedBean and @javax.inject.Named in ClassPathScanningCandidateComponentProvider#registerDefaultFilters(...).
  • Support @javax.annotation.ManagedBean and @javax.inject.Named in AnnotationBeanNameGenerator#isStereotypeWithNameValue(...).
  • Update tests.
  • Update Javadoc.
@sbrannen sbrannen added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement labels Aug 22, 2023
@sbrannen sbrannen added this to the 6.1.0-RC1 milestone Aug 22, 2023
@sbrannen sbrannen self-assigned this Aug 22, 2023
sbrannen added a commit to sbrannen/spring-framework that referenced this issue Aug 22, 2023
…amed

This commit reinstates support for the legacy JSR-250
@javax.annotation.ManagedBean and JSR-330 @javax.inject.Named
annotations with regard to component name lookups.

Support for component scanning will be added in a subsequent commit.

See spring-projectsgh-31090
@sbrannen
Copy link
Member Author

Current work on this feature can be viewed in the following feature branch: main...sbrannen:spring-framework:issues/gh-31090-legacy-ManagedBean-and-Named-annotations

sbrannen added a commit to sbrannen/spring-framework that referenced this issue Aug 23, 2023
…amed

This commit reinstates support for the legacy JSR-250
@javax.annotation.ManagedBean and JSR-330 @javax.inject.Named
annotations with regard to component name lookups.

Support for component scanning will be added in a subsequent commit.

See spring-projectsgh-31090
sbrannen added a commit to sbrannen/spring-framework that referenced this issue Aug 23, 2023
…amed

This commit reinstates support for the legacy JSR-250
@javax.annotation.ManagedBean and JSR-330 @javax.inject.Named
annotations with regard to component scanning.

See spring-projectsgh-31090
sbrannen added a commit to sbrannen/spring-framework that referenced this issue Aug 26, 2023
…amed

This commit reinstates support for the legacy JSR-250
@javax.annotation.ManagedBean and JSR-330 @javax.inject.Named
annotations with regard to component name lookups and component
scanning.

Closes spring-projectsgh-31090
sbrannen added a commit that referenced this issue Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant