-
Notifications
You must be signed in to change notification settings - Fork 38.9k
Closed as not planned
Closed as not planned
Copy link
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applystatus: feedback-providedFeedback has been providedFeedback has been provided
Description
Overview
As asked, this is a copy paste of #33345.
This regression is done again in version 7: 949432c.
Original Text
With the migration to Jakarta annotations in 7.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+ and 7+, 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.
Deliverables
- Support
@javax.annotation.ManagedBeanand@javax.inject.NamedinClassPathScanningCandidateComponentProvider#registerDefaultFilters(...). - Support
@javax.annotation.ManagedBeanand@javax.inject.NamedinAnnotationBeanNameGenerator#isStereotypeWithNameValue(...). - Update tests.
- Update Javadoc.
Related Issues
- Retain support for legacy JSR-250
javax.annotation.PostConstruct/PreDestroyand JSR-330javax.inject.Injectin addition to Jakarta EE 9 annotations #27444 - Reinstate dependency injection support for legacy JSR-250
@javax.annotation.Resourceannotation #30695 - Reinstate support for legacy JSR-250
@javax.annotation.ManagedBeanand JSR-330@javax.inject.Namedannotations #31090 - Reinstate qualifier support for legacy JSR-330
@javax.inject.Namedannotation #33345
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applyA suggestion or change that we don't feel we should currently applystatus: feedback-providedFeedback has been providedFeedback has been provided