Skip to content

Retain support for legacy JSR-250 javax.annotation.PostConstruct/PreDestroy and JSR-330 javax.inject.Inject in addition to Jakarta EE 9 annotations #27444

Closed
@mp911de

Description

@mp911de

After migration to Jakarta EE 9, it's easy to miss that javax.annotation.PostConstruct or javax.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.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions