sealed interface are abstract and final

Brian Goetz brian.goetz at oracle.com
Mon Oct 7 15:47:12 UTC 2019


I agree this seems a bug.  There is no need for the ACC_FINAL bit to be set.

On 10/6/2019 6:40 PM, Remi Forax wrote:
> Hi all,
> currently a sealed interface is abstract and final,
> after having updated ASM to read sealed class/attribute, i try to test it with some sealed types running some bytecode rewriters of mine, and it was ugly.
>
> 2 of them flatly don't work on sealed types, because there are written with the assumption that if something final it is a class.
>
> Given that a sealed class is not final, why do we need interface to be final ?
>
> RĂ©mi



More information about the amber-spec-experts mailing list