Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sxa opened this issue Jun 11, 2024 · 1 comment
Open

Comments

@sxa
Copy link
Member

sxa commented Jun 11, 2024

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
Copy link
Member Author

sxa commented Jun 11, 2024

Grinding on various random machines:

@sxa sxa changed the title JDK8: Two failing charset tests in the NIO suite on AL2023 JDK8: Two failing charset tests (IBM943) in the NIO suite on some systems Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant