The fix for JDK-8182043 causes a regression for 32 bit builds. The change of MAX_ICON_SIZE from 128 to 256 increases stack usage by 370k, which causes an overflow because the default Windows 32 bit stack size is 320k.
Workaround is to set stack size, e.g. -Xss1m
Reproduces with
import javax.swing.UIManager;
public class Repro {
public static void main(final String... args) throws Exception {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
UIManager.getIcon("Tree.openIcon"); // Same with "Tree.closedIcon" and "Tree.leafIcon"
}
}