Narrow version range for not using system icons

This commit is contained in:
Sung Ho Yoon
2023-08-06 09:35:00 +09:00
committed by GitHub
parent c395386c05
commit d30fe66cac

View File

@@ -348,10 +348,10 @@ public class FlatFileChooserUI
private boolean doNotUseSystemIcons() { private boolean doNotUseSystemIcons() {
// Java 17 32bit craches on Windows when using system icons // Java 17 32bit craches on Windows when using system icons
// fixed in Java 18+ (see https://bugs.openjdk.java.net/browse/JDK-8277299) // fixed in Java 18+, fix backported in Java 17.0.3+ (see https://bugs.openjdk.java.net/browse/JDK-8277299)
return SystemInfo.isWindows && return SystemInfo.isWindows &&
SystemInfo.isX86 && SystemInfo.isX86 &&
(SystemInfo.isJava_17_orLater && !SystemInfo.isJava_18_orLater); (SystemInfo.isJava_17_orLater && SystemInfo.javaVersion < SystemInfo.toVersion(17, 0, 3, 0));
} }
//---- class FlatFileView ------------------------------------------------- //---- class FlatFileView -------------------------------------------------