Deprecated flag before import or package is not processed properly

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: P4
    • 8
    • Affects Version/s: 7
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: