JD.UMC.RUNFINJD.UMC.RUNFIN reports a call to method runFinalizersOnExit() that may cause erratic behavior or deadlocks. Vulnerability and riskThere is a call to method runFinalizersOnExit() which may cause erratic behavior or deadlocks. Mitigation and preventionAvoid the call to runFinalizersOnExit(). Example 19 void run() throws Throwable{ 10 System.runFinalizersOnExit(true); 11 } JD.UMC.RUNFIN is reported for line 10: There is a call to method 'runFinalizersOnExit'. This method is inherently unsafe. |