[jdk17u-dev] RFR: 8320798: Console read line with zero out should zero out underlying buffer
    Goetz Lindenmaier 
    goetz at openjdk.org
       
    Thu Dec 14 21:02:53 UTC 2023
    
    
  
I think thsi should be backported to fix the underlying issue. 
Console has been improved a lot in 21 and later, so the original patch does not apply well.
Console was turned into a sealed class. The implementation was moved to JdkConsoleImpl.
(8298416: Console should be declared sealed, 8298971: Move Console implementation into jdk internal package)
Later,  the class moved to jdk.internal.le and JLine was added (8295803: Console should be usable in jshell and other environments).
I moved the coding to Console.java. We verified with our testcase that the issue is actually fixed.  The two follow up fixes are not needed as 8295803 is not in 17.
-------------
Commit messages:
 - Backport  d568562966e9a2020704eee3d67b8a106f647d9c
Changes: https://git.openjdk.org/jdk17u-dev/pull/2053/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=2053&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8320798
  Stats: 19 lines in 2 files changed: 19 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/2053.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/2053/head:pull/2053
PR: https://git.openjdk.org/jdk17u-dev/pull/2053
    
    
More information about the jdk-updates-dev
mailing list