Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8160203 Umbrella: enhancements to the deprecation mechanism
  3. JDK-8193190

(jdeprscan) Add checks for overridden finalize methods and related dependencies such as close()

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • tools
    • None

      A suggestion to be able to provide warnings for code that needs to be changed.

      "If my understanding of the architecture of jdeprscan is correct, it should be a "small matter of programming" to add a check along the lines of

          classes which subclass FIS/FOS (or other class with a deprecated-for-removal finalize method) AND
          override methods from some pre-determined list

      Depending on how hacky or ad hoc a solution was acceptable, the list of method names could be stored in a non-documented JDK-specific annotation on { FIS/FOS}.finalize. Basically, a list of the self-use methods called from the finalize method.
      "

            smarks Stuart Marks
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: