JDK 9 RFR of 6481080 : (ann) @Deprecated annotation has no effect on packages
Paul Sandoz
paul.sandoz at oracle.com
Wed Jan 7 09:44:26 UTC 2015
On Jan 7, 2015, at 12:12 AM, joe darcy <joe.darcy at oracle.com> wrote:
> Hello,
>
> As part of cleaning up the deprecation facility in 9, please review this change to document when a @Deprecated annotation is a no-op:
>
> 6481080 : (ann) @Deprecated annotation has no effect on packages
> http://cr.openjdk.java.net/~darcy/6481080.0/
>
+1
I am curious to know why @Deprecated was originally allowed to be declared on local variables and packages if it has no effect. I can imagine for the latter there might be some computational issue with javac and I suppose there is still some source code documentation value and other tools can still crunch on it.
Paul.
More information about the core-libs-dev
mailing list