[jdk11u-dev] RFR: 8333837: [11u] HexPrinterTest.java javac compile fails illegal start of expression [v2]

SendaoYan syan at openjdk.org
Tue Jun 11 11:36:14 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

The GHA test runner report a intermittent failure, seems to be recorded by [JDK-8229253](https://bugs.openjdk.org/browse/JDK-8229253). I think it's unrelated to this PR.

test FJExceptionTableLeak.exceptionTableCleanup(): failure
java.lang.AssertionError: failed to satisfy condition
	at FJExceptionTableLeak.gcAwait(FJExceptionTableLeak.java:202)
	at FJExceptionTableLeak.exceptionTableCleanup(FJExceptionTableLeak.java:137)

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

PR Comment: https://git.openjdk.org/jdk11u-dev/pull/2750#issuecomment-2160522228


More information about the jdk-updates-dev mailing list