Re: RFR[8245828]: 'Remove unnecessary NetworkPermission checks from jdk/net/ExtendedSocketOptions.java’
Patrick Concannon
patrick.concannon at oracle.com
Tue Jun 9 09:24:52 UTC 2020
Hi Alan,
Thanks for spotting this.
I’ve included the change in the updated webrev below.
http://cr.openjdk.java.net/~pconcannon/8245828/webrevs/webrev.01/ <http://cr.openjdk.java.net/~pconcannon/8245828/webrevs/webrev.01/>
Kind regards,
Patrick
> On 9 Jun 2020, at 07:13, Alan Bateman <Alan.Bateman at oracle.com> wrote:
>
>
>
> On 08/06/2020 19:53, Patrick Concannon wrote:
>> Hi,
>>
>> Could someone please review my fix for JDK-8245828 - ‘Remove unnecessary NetworkPermission checks from jdk/net/ExtendedSocketOptions.java’ ?
>>
>> With the removal of socket option SO_FLOW_SLA the NetworkPermission checks in jdk/net/ExtendedSocketOptions are no longer required. This fix removes these checks.
>>
>> issue: https://bugs.openjdk.java.net/browse/JDK-8245828
>> webrev: http://cr.openjdk.java.net/~pconcannon/8245828/webrevs/webrev.00/
> The remove of the permission check looks good but I'm curious why the security policy needs accessDeclaredMembers - is it because of the getServerSocketTrafficClass method in the test? Just wondering if you've tried changing that to getMethod (rather than getDeclaredMethod) as its a public method.
>
> -Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20200609/c4487ac9/attachment.htm>
More information about the net-dev
mailing list