RFR: 8347530: Improve error message with invalid permits clauses [v2]
Aggelos Biboudis
abimpoudis at openjdk.org
Fri May 16 12:45:51 UTC 2025
> Currently we report one kind of error message (`subclass {0} must extend sealed class`) when there is a compile-type error in cases like the following:
>
>
> sealed class C0 permits S0 {}
> class S0 {}
>
>
> This PR proposes to improve error reporting since there are other kinds of declarations that can also participate in sealed hierarchies like records, enums and interfaces.
Aggelos Biboudis has updated the pull request incrementally with one additional commit since the last revision:
Address review
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/25255/files
- new: https://git.openjdk.org/jdk/pull/25255/files/3195b3ad..4fb2f9af
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=25255&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=25255&range=00-01
Stats: 7 lines in 1 file changed: 0 ins; 6 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/25255.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25255/head:pull/25255
PR: https://git.openjdk.org/jdk/pull/25255
More information about the compiler-dev
mailing list