JDK-8177432 : finalizer-related lint warnings
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2017-03-22
  • Updated: 2022-05-10
  • Resolved: 2022-05-10
Related Reports
Relates :  
Description
There are a number of structural misuses of finalizers javac could conceivably identify as lint warnings:

* Failure to have any call to super.finalize() in a user-declared finalize() method

* Explicit calls to finalize() from non-finalize() methods
Comments
Given the deprecation of finalization (JDK-JDK-8274609), there is less utility in implementing the checks in question. Closing as will not fix.
10-05-2022