Blessed modifier order does not include sealed/non-sealed

Remi Forax forax at univ-mlv.fr
Tue Jan 2 12:11:37 UTC 2024


----- Original Message -----
> From: "Pavel Rappo" <pavel.rappo at oracle.com>
> To: "core-libs-dev" <core-libs-dev at openjdk.org>
> Sent: Tuesday, January 2, 2024 12:56:08 PM
> Subject: Blessed modifier order does not include sealed/non-sealed

> I couldn't find any prior discussions on this matter.
> 
> I noticed that bin/blessed-modifier-order.sh has not been updated for the
> [recently introduced](https://openjdk.org/jeps/409) `sealed` and `non-sealed`
> keywords. I also note that we already have cases in OpenJDK where those
> keywords are ordered differently. If we have a consensus on how to extend the
> "blessed order" onto those new keywords, I can create a PR to update the
> script.
> 
> -Pavel

[amber-spec-experts added]

Hello,
For me, sealed, non-sealed and final are (mutually exclusive) modifiers that control of the subtypes of a class.
Given that there is already a blessed order for final, sealed and non-sealed should be at the same place as final.

regards,
Rémi


More information about the amber-spec-experts mailing list