Reinstate support for legacy JSR-250 @javax.annotation.ManagedBean
and JSR-330 @javax.inject.Named
annotations
#31090
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
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
javax.annotation.PostConstruct
/PreDestroy
and JSR-330javax.inject.Inject
in addition to Jakarta EE 9 annotations #27444@javax.annotation.Resource
annotation #30695Deliverables
@javax.annotation.ManagedBean
and@javax.inject.Named
inClassPathScanningCandidateComponentProvider#registerDefaultFilters(...)
.@javax.annotation.ManagedBean
and@javax.inject.Named
inAnnotationBeanNameGenerator#isStereotypeWithNameValue(...)
.The text was updated successfully, but these errors were encountered: