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

Don't issue deprecation warnings on import statements

    XMLWordPrintable

Details

    • b42
    • Verified

    Backports

      Description

        During efforts to rid the JDK code base of lint warnings, it has been observed that the deprecation lint warnings currently issued on import statements are a nuisance and often uninformative.

        While use of deprecated types within methods or in method signatures can be suppressed using @SuppressWarning, and annotation *cannot* be used to suppress the deprecation warning on an import. To get a warning-free program that must use deprecated types or method, it is unreasonable to impose a requirement that all references to the deprecated elements must be through a fully qualified name.

        Therefore, it would be helpful if the JLS were changed to no longer require a deprecation warning be used for import statements.

        Attachments

          Issue Links

            Activity

              People

                jlahoda Jan Lahoda
                darcy Joe Darcy
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: