Skip to content

Commit

Permalink
Narrow version range for not using system icons
Browse files Browse the repository at this point in the history
  • Loading branch information
syoon2 authored Aug 6, 2023
1 parent c395386 commit d30fe66
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,10 @@ public void clearIconCache() {

private boolean doNotUseSystemIcons() {
// 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 &&
SystemInfo.isX86 &&
(SystemInfo.isJava_17_orLater && !SystemInfo.isJava_18_orLater);
(SystemInfo.isJava_17_orLater && SystemInfo.javaVersion < SystemInfo.toVersion(17, 0, 3, 0));
}

//---- class FlatFileView -------------------------------------------------
Expand Down

0 comments on commit d30fe66

Please sign in to comment.