[jdk11u-dev] Integrated: 8333837: [11u] HexPrinterTest.java javac compile fails illegal start of expression
SendaoYan
syan at openjdk.org
Wed Jun 12 08:11:24 UTC 2024
On Sat, 8 Jun 2024 09:28:16 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.
This pull request has now been integrated.
Changeset: c9cc14b5
Author: SendaoYan <syan at openjdk.org>
Committer: Aleksey Shipilev <shade at openjdk.org>
URL: https://git.openjdk.org/jdk11u-dev/commit/c9cc14b5653ac14fd4e23d8267fd639368905cf4
Stats: 16 lines in 1 file changed: 10 ins; 0 del; 6 mod
8333837: [11u] HexPrinterTest.java javac compile fails illegal start of expression
Reviewed-by: mdoerr, shade
-------------
PR: https://git.openjdk.org/jdk11u-dev/pull/2750
More information about the jdk-updates-dev
mailing list