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 block body that cannot complete normally is not treated as value-compatible · Issue #7144 · pmd/pmd Closed Labels Milestone DescriptionAffects PMD Version: 7.28.0 (also 7.29.0-SNAPSHOT) Description: For an
Lines 141 to 148 in 5c9271c
JLS 15.27.2 asks instead whether the block can complete normally (JLS 14.22). The body Found while working on #7136. Code Sample demonstrating the issue: import java.util.concurrent.ExecutorService; public class Submit { void t(ExecutorService pool, boolean flag) { pool.submit(() -> { while (true) { } }); pool.submit(() -> { if (flag) { throw new IllegalStateException(); } }); } } Steps to reproduce:
Running PMD through: Other (PmdAnalysis API) Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue 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. |