GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — [java] Lambda with a parenthesized expression body is treated as void-compatible · Issue #7145 · pmd/pmd Closed Labels in:type-resolutionAffects the type resolution code Milestone DescriptionAffects PMD Version: 7.28.0 (also 7.29.0-SNAPSHOT) Description: javac rejects
Lines 153 to 160 in 5c9271c
PMD has no node for parentheses. The body of Found while working on #7136. Code Sample demonstrating the issue: import java.util.function.Supplier; public class ParenBody { static String str() { return "s"; } static void g(int x, Supplier<String> s) { } static void g(Object x, Runnable r) { } void t(Integer i) { g(i, () -> (str())); g(i, () -> str()); } } Steps to reproduce:
Running PMD through: Other (PmdAnalysis API) Activity
MetadataMetadataAssigneesLabelsin:type-resolutionAffects the type resolution code TypeProjectsMilestoneRelationshipsDevelopmentIssue actions | ||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |