On Fri, 4 Jun 2021 15:46:32 GMT, Paul Sandoz <[email protected]> wrote:
>> Jan Lahoda has updated the pull request incrementally with one additional
>> commit since the last revision:
>>
>> Fixing typo.
>
> test/langtools/tools/javac/patterns/DisambiguateParenthesizedPattern.java
> line 72:
>
>> 70: SwitchTree st = (SwitchTree)
>> method.getBody().getStatements().get(0);
>> 71: CaseLabelTree label = st.getCases().get(0).getLabels().get(0);
>> 72: ExpressionType actualType = switch (label) {
>
> Should the test be careful of using a pattern match switch?
I don't think using the new feature in the tests is problematic (esp. javac
tests related to the feature). It helps to ensure the feature really works on
real code.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3863