[jdk11u-dev] RFR: 8333837: [11u] HexPrinterTest.java javac compile fails illegal start of expression [v2]
Aleksey Shipilev
shade at openjdk.org
Wed Jun 12 08:11:23 UTC 2024
On Tue, 11 Jun 2024 08:38:33 GMT, SendaoYan <syan at openjdk.org> wrote:
>> Hi all,
>> The testcase `test/lib-test/jdk/test/lib/hexdump/HexPrinterTest.java` fails because of Java 11 doesn't support `var v = switch(String) { case String -> ... }` syntax. This testcase was backported by [JDK-8329248](https://bugs.openjdk.org/browse/JDK-8329248) from jdk15. This PR fix the syntax error to make the testcase work normally.
>> Only change the testcase, the change has been verified, no risk.
>
> SendaoYan has updated the pull request incrementally with one additional commit since the last revision:
>
> revert the copyright year change
Marked as reviewed by shade (Reviewer).
-------------
PR Review: https://git.openjdk.org/jdk11u-dev/pull/2750#pullrequestreview-2112272994
More information about the jdk-updates-dev
mailing list