Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removal of deprecated bits for next major version #472

Closed
manovotn opened this issue Apr 9, 2021 · 0 comments · Fixed by #473
Closed

Removal of deprecated bits for next major version #472

manovotn opened this issue Apr 9, 2021 · 0 comments · Fixed by #473
Assignees
Labels
breaking_change A change breaking backward compatibility

Comments

@manovotn
Copy link
Contributor

manovotn commented Apr 9, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking_change A change breaking backward compatibility
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant