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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7
    • 7
    • core-libs
    • None
    • b81
    • generic
    • generic

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: