sealed interface are abstract and final
Remi Forax
forax at univ-mlv.fr
Sun Oct 6 22:40:54 UTC 2019
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