RFR: CODETOOLS-7902926: JMH: More reliable Console charset probing

Aleksey Shipilev shade at openjdk.java.net
Wed May 5 12:52:17 UTC 2021


Current Console charset probing is not very reliable: it exits on first failure. This is especially important after CODETOOLS-7902915, which polls "charset()" method that is only available in JDK 17+. This makes the whole Console charset probing block to exit early.

-------------

Commit messages:
 - Fixing Console

Changes: https://git.openjdk.java.net/jmh/pull/35/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jmh&pr=35&range=00
  Issue: https://bugs.openjdk.java.net/browse/CODETOOLS-7902926
  Stats: 31 lines in 1 file changed: 6 ins; 4 del; 21 mod
  Patch: https://git.openjdk.java.net/jmh/pull/35.diff
  Fetch: git fetch https://git.openjdk.java.net/jmh pull/35/head:pull/35

PR: https://git.openjdk.java.net/jmh/pull/35


More information about the jmh-dev mailing list