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

Deprecated flag before import or package is not processed properly

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: