Skip to content

Removal of deprecated bits for next major version #472

@manovotn

Description

@manovotn

There are certain bits in the specification that have been carried over as deprecated legacy for years.
I think for future versions we can easily shake them off.

I discovered the following deprecated parts that I think we can remove:

  • @New qualifier
    • Deprecated since CDI 1.1 and replaced by @Dependent
  • Bean.isNullable() method
    • Deprecated since CDI 1.1
  • BeanManager.fireEvent() method
    • Deprecated since CDI 2.0 and replaced by BeanManager.getEvent()
  • BeanManager.createInjectionTarget(AnnotatedType) method
    • Deprecated since CDI 1.1 and replaced by BeanManager.getInjectionTargetFactory(AnnotatedType)
  • BeforeBeanDiscovery.addAnnotatedType(AnnotatedType) method
    • Deprecated since CDI 1.1 and replaced by BeforeBeanDiscovery.addAnnotatedType(AnnotatedType, String)
  • Remove the notion of a mandatory configuration switch for all container to support different understanding of missing beans.xml

Obviously, for all of the above changes might be needed in both, API and specification text.

Metadata

Metadata

Assignees

Labels

breaking_changeA change breaking backward compatibility

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions