Redundant check in java.security.BasicPermission.implies()
Alan.Bateman at oracle.com
Fri Nov 29 15:37:52 UTC 2013
On 29/11/2013 14:43, Alex Yursha wrote:
> Hi everyone, the summary of this issue is that it seems like
> java.security.BasicPermission.implies() executes a useless check that
> duplicates the functionality provided by java.lang.String.startsWith().
> Below is a jdk7 code for java.security.BasicPermission.implies() method
> with the lines of interest highlighted in bold:
On the surface this it does appear to be unnecessary so I'd suggest
bringing it up on security-dev where this area is maintained (it looks
like BasicPermission could do with at least some clean-up anyway).
More information about the core-libs-dev