A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/3117 below:

[java] Infinite loop when parsing invalid code nested in lambdas · Issue #3117 · pmd/pmd · GitHub

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