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

Error in "How and When To Deprecate APIs"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 5.0
    • docs
    • b96
    • generic
    • generic

      http://java.sun.com/j2se/1.5.0/docs/guide/javadoc/deprecation/deprecation.html

      Under the heading "How To Deprecate", second paragraph, it says:

      (quote)The compiler suppresses deprecation warnings if a deprecated compilation unit uses a deprecated class, method, or field. (endquote)

      According to JLS3 9.6.1.6, the granularity is "same outermost class". A warning will not be generated if a class calls or overrides a deprecated item in the same outermost class.


      ###@###.### 2005-2-04 01:02:51 GMT

            swamyv Swamy Venkataramanappa (Inactive)
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: