[jdk11u-dev] RFR: 8333837: [11u] HexPrinterTest.java javac compile fails illegal start of expression [v2]
SendaoYan
syan at openjdk.org
Tue Jun 11 09:52:19 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
Thanks for the review.
-------------
PR Comment: https://git.openjdk.org/jdk11u-dev/pull/2750#issuecomment-2160303001
More information about the jdk-updates-dev
mailing list