You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Rainer Jung <ra...@kippdata.de> on 2023/04/19 10:17:14 UTC

New unit test failure for JDK21 EA (new charset)

Hi there,

I get a (not very important) unit test failure for all tags of this 
month when running with

openjdk version "21-ea" 2023-09-19
OpenJDK Runtime Environment (build 21-ea+16-1326)
OpenJDK 64-Bit Server VM (build 21-ea+16-1326, mixed mode, sharing)

Test output is:

Testsuite: org.apache.tomcat.util.buf.TestCharsetCache
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.36 sec
------------- Standard Output ---------------
"gb18030-2022"
------------- ---------------- ---------------

Testcase: testAllKnownCharsets took 0.326 sec
	FAILED
null
junit.framework.AssertionFailedError
	at 
org.apache.tomcat.util.buf.TestCharsetCache.testAllKnownCharsets(TestCharsetCache.java:76)
	at 
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)


According to https://jdk.java.net/21/release-notes, this new charset was 
introduced in JVM21 EA build 12. My failure is for build 16, I have not 
tested it with the current build 18.

Thanks and regards,

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org