RFR: 8300543 Compiler Implementation for Pattern Matching for switch [v6]

Maurizio Cimadamore mcimadamore at openjdk.org
Tue Apr 25 10:46:30 UTC 2023


On Tue, 25 Apr 2023 10:23:11 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> test/langtools/tools/javac/patterns/Exhaustiveness.java line 1:
>> 
>>> 1: /*
>> 
>> Isn't `Isn't `testCoversType1` the same as `testExhaustiveStatement3` ?
>
> Some of the tests called `testExhaustiveStatement` do not seem to test statements at all

In the two `testXYZExhaustiveIntersection` the class hierarchy seems the same - can we reuse it across multiple test cases? I see something similar done in `testOnlyApplicable`.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/13074#discussion_r1176325272


More information about the compiler-dev mailing list