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

Deprecated flag before import or package is not processed properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P4
    • 8
    • 7
    • tools
    • x86
    • windows_xp

    Description

      FULL PRODUCT VERSION :
      javac -version
      javac 1.6.0_06

      A DESCRIPTION OF THE PROBLEM :
      Compile the following code with javac -Xlint:deprecation src.java,
      A warning will be given :
      warning: [deprecation] test.b in test has been deprecated
      b c = new b();

      /**
       * @deprecated
       */
      package test;
      class b{

      }

      public class Test{
      public static void main(String[] args) {
      b c = new b();
      }
      }


      REPRODUCIBILITY :
      This bug can be reproduced always.

      Attachments

        Issue Links

          Activity

            People

              jlahoda Jan Lahoda
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: