On Mon, 1 Apr 2024 22:53:12 GMT, Larry Cable <[email protected]> wrote:

> the beancontext package was added (by me) in JDK 1.2 to provide JavaBeans(tm) 
> with a containment and services hierarchy.
> 
> based upon concepts from OpenDoc, which was a popular component model at the 
> time, the API pre-dated the addition of language features such as 
> annotations, and the invention and adoption of programming design patterns 
> such as "Inversion of Control"  and/or "Dependency Injection".
> 
> This API (package) has not evolved with either the language or current design 
> trends, as such it is, at best, anachronistic, and is probably an 
> anti-pattern that should be avoided.
> 
> This package is therefore deprecated **FOR REMOVAL IN AT FUTURE RELEASE**

Recommend java.beans.beancontext package.html be modified to include a 
deprecation note similar to the one present in java.applet package.html: 

> This package has been deprecated and may be removed in a future version of 
> the Java Platform. There is no replacement. All of the classes and interfaces 
> in this package have been terminally deprecated. Users are advised to migrate 
> their applications to other technologies.

-------------

PR Review: https://git.openjdk.org/jdk/pull/18569#pullrequestreview-1972627385

Reply via email to