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

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: