Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6908218

java.lang.Deprecated should have explicit @Target meta-annotation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b81
    • CPU:
      generic
    • OS:
      generic

      Description

      The annotation type java.lang.Deprecated does not have an explicit @Target meta-annotation; therefore, in can be applied in all possible locations even though it is not meaningful in some of those locations. As part of JSR 308, new locations were added and thereby Deprecated can now appear in still more locations without defined meaning.
      See also discussion in thread
      http://mail.openjdk.java.net/pipermail/core-libs-dev/2010-January/thread.html#3489
      See
      http://hg.openjdk.java.net/jdk7/tl/jdk/rev/fa0cb25202d8

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              darcy Joe Darcy
              Reporter:
              darcy Joe Darcy
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: