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

Deprecated warnings are not given if the class containing the tag is compiled at

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_2000

      Description



      Name: pa48320 Date: 08/08/2002

      If you compile a bunch on files at the same time and one containes the @deprecated tag and another uses that method, you will not get the deprecated warning. Consider the following two classes:
      package com.test;
      public class test1
      {
      /**
      * @deprecated
      */

      public void method1()
      {
      System.out.println("method1");
      }
      }

      package com.test;

      public class test2
      {

      public void method2()
      {
      test1 t = new test1();
      t.method1();

      }
      }

      Compile them using javac *.java. You get no warnings. Modify test2 and recompile just test2.java. You will get the deprecated warnings.
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gafter Neal Gafter
              Reporter:
              pallenba Peter Allenbach (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: