- Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement
Milestone
Description
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
- Retain support for legacy JSR-250
javax.annotation.PostConstruct
/PreDestroy
and JSR-330javax.inject.Inject
in addition to Jakarta EE 9 annotations #27444 - Reinstate dependency injection support for legacy JSR-250
@javax.annotation.Resource
annotation #30695
Deliverables
- Support
@javax.annotation.ManagedBean
and@javax.inject.Named
inClassPathScanningCandidateComponentProvider#registerDefaultFilters(...)
. - Support
@javax.annotation.ManagedBean
and@javax.inject.Named
inAnnotationBeanNameGenerator#isStereotypeWithNameValue(...)
. - Update tests.
- Update Javadoc.
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement