aqa-tests icon indicating copy to clipboard operation
aqa-tests copied to clipboard

JDK8: Two failing charset tests (IBM943) in the NIO suite on some systems

Open sxa opened this issue 8 months ago • 1 comments

The following two tests fail on Amazon Linux 2023 but it's not limited to that platform (Verified on Debian12 and Ubuntu 24.04):

testing: x-IBM943        
  string de/encoding
    new String()
    String.getBytes()
  1 byte/char
    decode
    decode (direct)
  2 bytes/char
    decode
    decode (direct)
  1 byte/char
    encode
    encode (direct)
  2 bytes/char
    encode
      Error: U+8ec0 --> 3f3f, expected 8beb
      Error: U+8141 --> 3f3f, expected e445
      Error: U+6805 --> 3f3f, expected 8df2
      Error: U+7006 --> 3f3f, expected 93c0
      Error: U+8346 --> 3f3f, expected 8c74
      Error: U+7e48 --> 3f3f, expected e379
      Error: U+840a --> 3f3f, expected 9789
      Error: U+56ca --> 3f3f, expected 9458
      Error: U+ff0d --> 3f3f, expected 817c
      Error: U+688e --> 3f3f, expected 9e94
      Too many errors, giving up
    encode (direct)
      Error: U+8ec0 --> 3f3f, expected 8beb
      Error: U+8141 --> 3f3f, expected e445
      Error: U+6805 --> 3f3f, expected 8df2
      Error: U+7006 --> 3f3f, expected 93c0
      Error: U+8346 --> 3f3f, expected 8c74
      Error: U+7e48 --> 3f3f, expected e379
      Error: U+840a --> 3f3f, expected 9789
      Error: U+56ca --> 3f3f, expected 9458
      Error: U+ff0d --> 3f3f, expected 817c
      Error: U+688e --> 3f3f, expected 9e94
      Too many errors, giving upThe
  • sun/nio/cs/TestIBMBugs.java - the failure here would be consistent with the error above with an IBM943 encoding failure:
java.lang.Exception: x-IBM943 failed to encode
	at TestIBMBugs.bug8235834(TestIBMBugs.java:225)
	at TestIBMBugs.main(TestIBMBugs.java:242)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
	at java.lang.Thread.run(Thread.java:750)

JavaTest Message: Test threw exception: java.lang.Exception
JavaTest Message: shutting down test

sxa avatar Jun 11 '24 15:06 sxa