JDK 9 RFR of JDK-8078467: Update core libraries to use diamond with anonymous classes

Mandy Chung mandy.chung at oracle.com
Thu Apr 23 01:24:06 UTC 2015


On 4/22/2015 6:08 PM, joe darcy wrote:
> Hello,
>
> Earlier in JDK 9, the diamond syntax was expanded to be usable with 
> many cases of anonymous classes. [1]
>
> Please review the fix below take advantage of the new syntax (and also 
> take advantage of the original diamond syntax in some cases) in the 
> core libraries:
>
>     JDK-8078467: Update core libraries to use diamond with anonymous 
> classes
>     http://cr.openjdk.java.net/~darcy/8078467.0/
>
> The main beneficiary of the new syntax are call sites of 
> PrivilegedAction.

Looks good.  Happy to see this change that reduces the code "noises".

Not sure if you are planning to touch the serviceability area, if so, 
better to delay that until the next hotspot integration to jdk9/dev as 
there is a big refactoring in java.management module that has been 
integrated to jdk9/hs.

Mandy



More information about the core-libs-dev mailing list