Retain support for legacy JSR-250 javax.annotation.PostConstruct
/PreDestroy
and JSR-330 javax.inject.Inject
in addition to Jakarta EE 9 annotations
#27444
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
After migration to Jakarta EE 9, it's easy to miss that
javax.annotation.PostConstruct
orjavax.inject.Inject
are no longer working when not covered by a test. This can be an easy-to-make bug when these annotations reside on the classpath after migrating to Jakarta EE 9.It would be neat to support both annotation variants for at least a grace period or to fail fast when these annotations are in use.
The text was updated successfully, but these errors were encountered: