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
With the migration to Jakarta annotations in 6.0, we switched to supporting
@jakarta.annotation.ManagedBeanand@jakarta.inject.Namedannotations 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.ManagedBeanand JSR-330@javax.inject.Namedannotations so that existing compiled code will continue to work as expected.Related Issues
javax.annotation.PostConstruct/PreDestroyand JSR-330javax.inject.Injectin addition to Jakarta EE 9 annotations #27444@javax.annotation.Resourceannotation #30695Deliverables
@javax.annotation.ManagedBeanand@javax.inject.NamedinClassPathScanningCandidateComponentProvider#registerDefaultFilters(...).@javax.annotation.ManagedBeanand@javax.inject.NamedinAnnotationBeanNameGenerator#isStereotypeWithNameValue(...).