Review 8035808: Eliminate dependency to GetPropertyAction and other sun.security.action convenient classes
Chris Hegarty
chris.hegarty at oracle.com
Fri Mar 7 09:49:10 UTC 2014
This looks good to me Mandy. Reviewed.
-Chris.
On 6 Mar 2014, at 21:10, Mandy Chung <mandy.chung at oracle.com> wrote:
> Webrev:
> http://cr.openjdk.java.net/~mchung/jdk9/webrevs/8035808/webrev.00/
>
> This patch converts the use of sun.security.action.GetPropertyAction tolambda
> (PrivilegedAction<String>) () -> System.getProperty(key)
>
> Similarly for GetIntegerAction and GetLongAction.
>
> The sun.security.action.* classes are just convenient classes that are used not only by the security library but also used by RMI, management, a couple other components that cause cross-module dependency that are not absolutely necessary. They can simply be replaced to call System.getProperty, Integer.getInteger, or Long.getLong at the callsite.
>
> Mandy
More information about the core-libs-dev
mailing list