Affects PMD Version:
all versions (<= 6.31.0).
Code sample reproducing the issue:
import java.util.*; public class InfiniteLoopInLookahead { public void exam1(List resList) { resList.forEach(a -> { resList.forEach(b -> { resList.forEach(c -> { resList.forEach(d -> { resList.forEach(e -> { resList }); }); }); }); }); } }
dead loop when throw Exception here
net.sourceforge.pmd.lang.java.ast.JavaParser#generateParseException
--> jj_rescan_token();
----> jj_3_82();
dead loop scan the token
Running PMD through: [java test code]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4