RFR: 8246778: Compiler implementation for Sealed Classes (Second Preview)

Mandy Chung mandy.chung at oracle.com
Tue Nov 24 23:43:48 UTC 2020



On 11/24/20 3:18 PM, Remi Forax wrote:
>
> Hi Mandy,
> given that almost nobody knows about sealed packages, i'm not sure that adding a reference to Package::isSealed in Class::isSealed actually helps, it might be confusing.
>

It's even better if the API note in `Class::isSealed` from PR is removed:
      * This method reports on a distinct concept of sealing from
      * {@link Package#isSealed() Package::isSealed}.

I'm good with that.   Alan and I saw the proposed API note and just feel 
it adds more confusion than helping (My comment is meant to be on 
Class::isSealed but now I realized the comment is on Package::isSealed.  
sorry for the confusion.)

Mandy


More information about the core-libs-dev mailing list