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 - "Hints > General > Use Functional Operations" not shown when it should be
Summary: "Hints > General > Use Functional Operations" not shown when it should be
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-07 13:34 UTC by terje7601
Modified: 2016-07-14 01:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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