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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 6u23
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: