On `NewFolderAction`, plain String is added `Action.ACTION_COMMAND_KEY`. Converting the `String `to `locale` before adding as command key fix the issue. I have verified the test in all other platforms and Look and Feel which has option to create New Folder, results were fine. No regressions found on CI system with the fix. Added manual test to verify the fix.
------------- Commit messages: - Whitespace removal - Fix + Manual Test Changes: https://git.openjdk.org/jdk/pull/15069/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=15069&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8312075 Stats: 129 lines in 3 files changed: 128 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/15069.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/15069/head:pull/15069 PR: https://git.openjdk.org/jdk/pull/15069