JD.UMC.RUNFIN

JD.UMC.RUNFIN reports a call to method runFinalizersOnExit() that may cause erratic behavior or deadlocks.

Vulnerability and risk

There is a call to method runFinalizersOnExit() which may cause erratic behavior or deadlocks.

Mitigation and prevention

Avoid the call to runFinalizersOnExit().

Example 1

Copy
      void run() throws Throwable{
         System.runFinalizersOnExit(true);
     }

JD.UMC.RUNFIN is reported for line 10: There is a call to method 'runFinalizersOnExit'. This method is inherently unsafe.