APAR status
Closed as program error.
Error description
Error Message: N/A . Stack Trace: N/A . public class Testcase { public static void main(String<OSB><CSB> args) { // garbled password for System.console().readPassword: char<OSB><CSB> pw = System.console().readPassword( "Please enter password: " ); System.out.println("You entered: " + new String(pw) ); // garbled text for System.console().printf: System.out.println("Output check, System.out"); System.console().printf("Output check, System.console()\n"); } }
Local fix
Problem summary
The System.console().readPassword() and System.console().printf function produces distorted values "??%%?????%???/??`???_??>??%???" with file.encoding
Problem conclusion
To address this issue, static block code has been incorporated to Console.java which retrieves the value from ibm.system.encoding in case of non-ASCII platforms. This ensures the accurate password and printf statements when reading of System.console. . This APAR will be fixed in the following Releases: . IBM Semeru Runtimes 11 11.0.22.0 17 17.0.10.0 . Downloads and supplementary documentation can be found at the following locations: - For non z/OS operating systems: - IBM Semeru Runtimes, Version 11 and later https://www.ibm.com/semeru-runtimes/downloads/ - IBM SDK, Java Technology Edition, Version 8 https://www.ibm.com/support/pages/java-sdk-downloads/ - For the z/OS operating system: - Java SDK Products on z/OS https://www.ibm.com/support/pages/java-sdk-products-zos
Temporary fix
Comments
APAR Information
APAR number
IJ49937
Reported component name
OPENJDK CLASS L
Reported component ID
621800100
Reported release
B00
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2024-02-05
Closed date
2024-02-05
Last modified date
2024-04-20
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
OPENJDK CLASS L
Fixed component ID
621800100
Applicable component levels
[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"B00","Line of Business":{"code":"LOB08","label":"Cognitive Systems"}}]
Document Information
Modified date:
21 April 2024