Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
P3
-
Resolution: Fixed
-
Affects Version/s: 9
-
Fix Version/s: 9
-
Component/s: client-libs
-
Labels:
-
Subcomponent:
-
Resolved In Build:b85
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8142136 | emb-9 | Yuri Nesterenko | P3 | Resolved | Fixed | team |
Description
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.
Attachments
Issue Links
- backported by
-
JDK-8142136 Do not create LaF instance in javax/swing/plaf/windows/6921687/bug6921687.java
-
- Resolved
-