JD.INF.ARECJD.INF.AREC occurs when the method calls itself without any prior checks. Vulnerability and riskIf this method is called, it will call itself again and again, and then the program stack will overflow and the JVM will throw a StackOverflowError. Obviously this is not what the programmer intended. Mitigation and preventionJD.INF.AREC has three possible causes.
Example 110 /** 11 * Implementation required by the interface. 12 * @param o - object to compare 13 * @return true, if equal. 14 */ 15 public boolean equals(Object o) { 16 return this.equals(o); 17 } JD.INF.AREC is reported for call on line 16: Apparent infinite recursion by calling 'equals(java.lang.Object)' from itself Security guidelines |