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

Inconvenient javac deprecation warning suppression

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.1.7, 1.2.1, 1.2.2, 1.4.0
    • Fix Version/s: 1.4.2
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      mantis
    • CPU:
      generic, x86, sparc
    • OS:
      generic, solaris_2.6, windows_2000
    • Verification:
      Verified

      Description



      Name: dbT83986 Date: 03/02/99


      javac -deprecation doesn't print a warning of a usage in file A.java of a deprecated method in B.java if B.java is being
      compiled at the same time as A.java. This is not an unreasonable idea, but it turns out that in the case I am using to be
      exactly incorrect. I DO want to see these warnings. I can break down the compile into file-by-file, but this takes a while
      to execute. How about a -reallyShowMeAllDeprecationWarnings option?
      (Review ID: 49011)
      ======================================================================

      Name: yyT116575 Date: 07/18/2001


      java version "1.2.2"
      Classic VM (build Linux_JDK_1.2.2_FCS, native threads, sunwjit)


      I'd like to see deprection warnings even if I compile the complete the
      deprecated code fragment and its user at the same time.

      For correct static analysis of a project it is not enough to create the class
      file if the .java file has changed. Dependency are much more complex. To be sure that everything is statically correct I'd like to compile the complete
      project and get every warning I can get.

      If parts of my project are deprecated I'd like to get warnings from the compiler about which other parts I'll have to change.
      (Review ID: 128335)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              gafter Neal Gafter
              Reporter:
              dblairsunw Dave Blair (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: