Description:
Pmd determines the code to be syntactically incorrect (the code compiles just fine), produces to following error message:
net.sourceforge.pmd.lang.java.ast.ParseException: Encountered " "new" "new "" at line 6, column 38.
Was expecting:
<IDENTIFIER> ...
Code Sample demonstrating the issue:
import java.util.*;
public class Main {
public static void main(String[] args) {
Runnable r11 = Main::<String>new;
// IntFunction<int[]> r13 = int[]::<String>new; // produces the same results
}
}
Running PMD through: Designer
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