Relates :
|
|
Relates :
|
This methods have a dependency on AWTPermission and so are problematic for a modular JDK as it results in a reflective dependency on the desktop module. As these methods are legacy (have not been required since JDK1.1) then we should consider deprecating them with a view to changing them in Java SE 9 so that they don't require AWTPermission. For Java SE 9 then they could check AllPermission or throw an exception.