This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 247771

Summary: "Hints > General > Use Functional Operations" not shown when it should be
Product: java Reporter: terje7601
Component: HintsAssignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 8.0.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description terje7601 2014-10-07 13:34:30 UTC
The following snippet doesn't show the hint:

List<String> input = Arrays.asList("1", "2");
List<Integer> output = new ArrayList<>();
for(String i : input) {
    output.add(Integer.parseInt(i));
}

while this one does:

List<String> input = Arrays.asList("1", "2");
List<Integer> output = new ArrayList<>();
for(String i : input) {
    output.add(i.length());
}

In my opinion, both snippets should show it.
Comment 1 Svata Dedic 2016-06-22 12:26:33 UTC
Fixed in jet-main#b96235dbc97e
Comment 2 Quality Engineering 2016-07-14 01:52:42 UTC
Integrated into 'main-silver', will be available in build *201607140002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b96235dbc97e
User: Svata Dedic <sdedic@netbeans.org>
Log: #247771: unchecked exceptions do not prevent the hint from appearing