Why @SafeVarargs has RetentionPolicy of RUNTIME?
Joe Darcy
joe.darcy at oracle.com
Tue Jul 26 11:48:15 PDT 2011
Paul Benedict wrote:
> I am curious why @SafeVarargs has its RetentionPolicy set at RUNTIME?
> I was expecting value CLASS because compilers need this information
> when building. So what use cases were being thought of to make it also
> visible at RUNTIME?
>
Paul,
There is an extensive discussion on that point in the Project Coin document:
http://cr.openjdk.java.net/~darcy/ProjectCoin/ProjectCoin-Documentation-v0.9375.html#varargs
-Joe
More information about the coin-dev
mailing list