JDK 9 RFR of JDK-7196160: Project Coin: allow @SafeVarargs on private methods
Jonathan Gibbons
jonathan.gibbons at oracle.com
Fri Jun 20 23:02:38 UTC 2014
Looks good to me.
-- Jon
On 06/16/2014 10:46 PM, Joe Darcy wrote:
> Hello,
>
> Please review my draft fix for
>
> JDK-7196160: Project Coin: allow @SafeVarargs on private methods
> http://cr.openjdk.java.net/~darcy/7196160.0/
>
> (This is one of the possible refinements to Project Coin described in
> JEP JDK-8042880: Milling Project Coin: softening some rough edges.)
>
> The changes are pretty straightforward. If an @SafeVarargs annotation
> is applied inappropriately, a source-level dependent message is
> produced. This could be enhanced slightly to recognize @SafeVarargs on
> a private method output a "use -source 9 or higher for @SafeVarargs
> ..." message.
>
> All regression tests pass after this change.
>
> Thanks,
>
> -Joe
More information about the compiler-dev
mailing list