JDK-8283237 : CallSite should be a sealed class
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang.invoke
  • Affected Version: 19
  • Priority: P4
  • Status: In Progress
  • Resolution: Unresolved
  • OS: generic
  • CPU: generic
  • Submitted: 2022-03-15
  • Updated: 2022-03-22
Related Reports
CSR :  
Description
A DESCRIPTION OF THE PROBLEM :
In the documentation for java.lang.invoke.CallSite:

CallSite is an abstract class which does not allow direct subclassing by users. It has three immediate, concrete subclasses that may be either instantiated or subclassed.

It should be sealed like EnumSet and Executable, and the three subclasses should be non-sealed. In addition, that piece of documentation may be updated to say "CallSite is an abstract sealed class..." as well. Other documentations appear to be fine as-is.



Comments
Additional Information from submitter: ============================ I have already submitted a pull request. This change requires a CSR, and I have written one at https://gist.github.com/150d5aa7f8b13a4deddf95969ad39d73 Can any bug system user create a corresponding CSR with the content provided above for this issue?
21-03-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7840 Date: 2022-03-16 13:09:30 +0000
16-03-2022

The refereed document is: https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/invoke/CallSite.html Moved to JDK for more evaluations.
16-03-2022