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

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: 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.
      "

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

              Created:
              Updated: