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

Annotation java.lang.Deprecated should be extended to accept a message as value

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 6u23
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:

      Description

      A DESCRIPTION OF THE REQUEST :
      @Deprecated can be used as on any piece of code for which using is discouraged. I request it to be extended with the following line:

      public String value() default "";

      This way the change would be backwards compatible.

      JUSTIFICATION :
      I think when marking sth. as deprecated it should be possible to explain, why sth. is deprecated or where to look elsewhere as a hint for the users of my api. At the moment, I find myself using the annotation @Deprecated paired with a javadoc comment @deprecated to explain why usage is discouraged.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: