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

Need Annotation @Denigrated

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_10

      Description

      A DESCRIPTION OF THE REQUEST :
      There needs to be an annotation (possibly one that generates warnings) so that Sun can represent classes that have been replaced by better options, but haven't deprecated.

      EG: StringTokenizer has been denigrated in favour of RegEx.

      JUSTIFICATION :
      I believe that bugs filed against some features almost never get fixed, because they've been replaced by other more functional pieces. This would allow developers to know that there's a better way to do something.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      A simple warning at compile time that this class has been replaced by something else:

      "Denigration warning: Use of StringTokenizer should be replaced by a use of Pattern.matches()"

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ahe Peter Ahe
              Reporter:
              rmandalasunw Ranjith Mandala (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: