javalang icon indicating copy to clipboard operation
javalang copied to clipboard

can't parse java8 lambada Reference to the constructor of the array

Open TheNorth-sec opened this issue 4 years ago • 0 comments

ReportEvent[] reportEvents = performanceEvents.stream().map(p -> { EventPackage eventPackage = parseEventPackage(null, null, p, null); return parseReportEvent(ts, commonPackage, eventPackage); }).toArray(ReportEvent[]::new);

above code, ReportEvent[]::new will parse false.

TheNorth-sec avatar Jun 03 '21 02:06 TheNorth-sec