-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b85
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8142136 | emb-9 | Yuri Nesterenko | P3 | Resolved | Fixed | team |
Instead of
lafClass = Class.forName(UIManager.getSystemLookAndFeelClassName());
UIManager.setLookAndFeel((LookAndFeel) lafClass.newInstance());
there should be
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
otherwise a special access may be required, and for that, an overly restricting knowledge about the possible values of the system LaF.
lafClass = Class.forName(UIManager.getSystemLookAndFeelClassName());
UIManager.setLookAndFeel((LookAndFeel) lafClass.newInstance());
there should be
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
otherwise a special access may be required, and for that, an overly restricting knowledge about the possible values of the system LaF.
- backported by
-
JDK-8142136 Do not create LaF instance in javax/swing/plaf/windows/6921687/bug6921687.java
- Resolved