<AWT Dev> [9] Review request for 8164536: enableSuddenTermination() - Not throws SecurityException if a security manager exists and it will not allow the caller to invoke System.exit
Alexander Zvegintsev
alexander.zvegintsev at oracle.com
Wed Aug 31 00:27:01 UTC 2016
Hi Sergey,
It could be, but actually RuntimePermission is used by eawt(sure we can
change it too, but I don't see a point)
Please see the updated webrev:
http://cr.openjdk.java.net/~azvegint/jdk/9/8164536/01/
--
Thanks,
Alexander.
On 30.08.2016 22:44, Sergey Bylokhov wrote:
> Hi, Alexander.
> Probably the name of this permission can be added to AWTPermissions.java?
> I am not sure why some of the methods require
> "canProcessApplicationEvents" permission. For example
> Taskbar.getTaskbar()? I guess Desktop.getDesktop() is used a template
> but it does not throw such exceptions and/or require similar permissions.
>
> On 30.08.16 21:58, Alexander Zvegintsev wrote:
>> Hello,
>>
>> Please review the fix
>>
>> http://cr.openjdk.java.net/~azvegint/jdk/9/8164536/00/
>>
>> for the issue
>>
>> https://bugs.openjdk.java.net/browse/JDK-8164536
>>
>> This fix add check for canProcessApplicationEvents runtime
>> permission(currently used by eawt) for Desktop and Taskbar classes.
>>
>>
>
>
More information about the awt-dev
mailing list