A RetroSearch Logo

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

Search Query:

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

GitHub ยท Where software is built

Affects PMD Version:

6.43.0

Description:

When a record has a compact constructor with lambda in it, PMD fails to process such record.

Exception Stacktrace:

PMDException: Error while processing .../RecordWithLambdaInCompactConstructor.java

Code Sample demonstrating the issue:

import static java.util.Objects.requireNonNull;

record RecordWithLambdaInCompactConstructor(String foo) {

     RecordWithLambdaInCompactConstructor {
         requireNonNull(foo, () -> "foo");
     }
}

Steps to reproduce:

./gradlew pmdMain

Running PMD through:

Gradle, Java 17


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