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] ExceptionAsFlowControl: False positive on Lambda/asynchronous · Issue #4815 · pmd/pmd Closed Labels a:false-positivePMD flags a piece of code that is not problematic Milestone DescriptionAffects PMD Version: Rule: ExceptionAsFlowControl Description: Code Sample demonstrating the issue: protected void doPublish(String issueLabel, Map<?, ?> details) { ExecutorService es = ...; try { es.execute(() -> { try { unsafeDoPublish(details); } catch (IOException e) { throw new UncheckedIOException(e); } }); } catch (RuntimeException e) { // Do not re-throw else it would go directly to the UncaughtExceptionHandler LOGGER.warn("Issue publishing notification " + details, e); } } Expected outcome: PMD reports a violation at line ..., but that's wrong. That's a false positive. Running PMD through: [CLI | Ant | Maven | Gradle | Designer | Other] Activity
MetadataMetadataAssigneesLabelsa:false-positivePMD flags a piece of code that is not problematic 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. |