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 256621 - Suggestion "Assign Return Value To New Variable" is not available on array constructor or when accessing properties
Summary: Suggestion "Assign Return Value To New Variable" is not available on array co...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-16 12:50 UTC by milanka
Modified: 2016-05-25 01:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Available hints (6.70 KB, image/png)
2015-11-16 12:50 UTC, milanka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description milanka 2015-11-16 12:50:18 UTC
Created attachment 157357 [details]
Available hints

Examples:

new String[0];

String[] array = new String[0];
array.length;


Product Version: NetBeans IDE 8.1 (Build 201510222201)
Java: 1.8.0_65; Java HotSpot(TM) 64-Bit Server VM 25.65-b01
Runtime: Java(TM) SE Runtime Environment 1.8.0_65-b17
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Svata Dedic 2016-05-20 14:18:22 UTC
Fixed in jet-main#b730f04f031e
Comment 2 Quality Engineering 2016-05-25 01:51:23 UTC
Integrated into 'main-silver', will be available in build *201605250002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b730f04f031e
User: Svata Dedic <sdedic@netbeans.org>
Log: #256621: allowed assignments for errors directly contained in a block