Find infinite recursion

Proprietary

Marks a method that calls itself on every path before it can return or throw, so that it can only end in a StackOverflowError. A call counts when it is to the same method on this, or statically, and is evaluated on every path: not only in a branch, a while or for body, the right side of &&, || or a conditional, a lambda or an anonymous class. A return, throw, or a break or continue that leaves the statement it is in, before the call, ends the search. Only the finally of a try that catches StackOverflowError, one of its supertypes or a type missing from the classpath is searched. Test sources are not searched.

io.moderne.staticanalysis.FindInfiniteRecursion
mod run . --recipe=io.moderne.staticanalysis.FindInfiniteRecursion

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.