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()

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: tools
    • Labels:
      None

      Description

      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.
      "

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: