[ https://issues.apache.org/jira/browse/NETBEANS-446?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Svatopluk Dedic reassigned NETBEANS-446: ---------------------------------------- Assignee: Svatopluk Dedic > Invalid "Use specific catch" hint > --------------------------------- > > Key: NETBEANS-446 > URL: https://issues.apache.org/jira/browse/NETBEANS-446 > Project: NetBeans > Issue Type: Bug > Components: java - Hints > Environment: Product Version: Apache NetBeans IDE Dev (Build > incubator-netbeans-release-222-on-20180226) > Java: 9.0.4; Java HotSpot(TM) 64-Bit Server VM 9.0.4+11 > Runtime: Java(TM) SE Runtime Environment 9.0.4+11 > System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb) > User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev > Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev > Reporter: Gili > Assignee: Svatopluk Dedic > Priority: Major > > Given: > {code:java} > public static <T> CompletionStage<T> supply(CheckedSupplier<T, Throwable> > supplier) > { > try > { > return CompletableFuture.completedFuture(supplier.get()); > } > catch (Throwable t) > { > CompletableFuture<T> result = new CompletableFuture<>(); > result.completeExceptionally(t); > return result; > } > } > {code} > Netbeans marks "catch (Throwable t)" with a hint to replace with "catch > (Throwable t)" (yes, the exact same String). > Expected behavior: no hint should be displayed in this case. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists