RFR: 8321428: Deprecate for removal the package java.beans.beancontext [v2]

Larry Cable duke at openjdk.org
Tue Apr 2 16:58:19 UTC 2024


> 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**

Larry Cable has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:

 - Merge branch 'openjdk:master' into 8321428
 - added deprecation message to package-info as requested
 - 8321428: Deprecate for removal the package java.beans.beancontext

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/18569/files
  - new: https://git.openjdk.org/jdk/pull/18569/files/4e6aef0b..ff50d1a8

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=18569&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=18569&range=00-01

  Stats: 385074 lines in 3334 files changed: 32128 ins; 25872 del; 327074 mod
  Patch: https://git.openjdk.org/jdk/pull/18569.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/18569/head:pull/18569

PR: https://git.openjdk.org/jdk/pull/18569


More information about the client-libs-dev mailing list