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 236272 - Implement "Assign Return Value To New Variable" hint
Summary: Implement "Assign Return Value To New Variable" hint
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-23 14:22 UTC by Alexander Simon
Modified: 2013-11-14 17:17 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2013-09-23 14:22:56 UTC
Please implement "Assign Return Value To New Variable" hint as it does java.
Comment 1 Alexander Simon 2013-09-24 14:45:01 UTC
fixed, change sets:
044b55b36fd2
0e071567f584
55848122e770
82f2749e6bcc
Comment 2 Alexander Simon 2013-09-25 14:15:56 UTC
additional fix for variable name:
ebb8a6204b1d
Comment 3 Alexander Simon 2013-09-25 15:55:37 UTC
additional fix of CsmMethod.isAbsract():
a839b158927d
Comment 4 Quality Engineering 2013-09-26 02:08:16 UTC
Integrated into 'main-silver', will be available in build *201309260002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9855f875a31e
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing Bug #236272 Implement "Assign Return Value To New Variable" hint
- scratch
(transplanted from 044b55b36fd2fa9c75a094f703c1ad387c439079)
Comment 5 Alexander Simon 2013-09-26 08:57:52 UTC
additional fix:
c138dba481c2
- see bug #236379
Comment 6 Alexander Simon 2013-09-26 12:03:35 UTC
additional fix:
2e93ffe25830
- see bug #236411
Comment 7 Alexander Simon 2013-09-26 13:57:20 UTC
additional fix:
227781be747b
Comment 8 Quality Engineering 2013-10-01 01:59:41 UTC
Integrated into 'main-silver', will be available in build *201310010002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a2046be22d7c
User: Alexander Simon <alexvsimon@netbeans.org>
Log: additional fix Bug #236272 Implement "Assign Return Value To New Variable" hint
- visit for, if recursively
(transplanted from 2e93ffe25830f30e746f7568b9c67f5c1d68a857)
Comment 9 Quality Engineering 2013-11-11 20:14:46 UTC
Integrated into 'releases/release74', will be available in build *201311111738* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/d0eeae672b8f
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing Bug #236272 Implement "Assign Return Value To New Variable" hint
- scratch
(transplanted from 044b55b36fd2fa9c75a094f703c1ad387c439079)
Comment 10 Alexander Pepin 2013-11-13 18:22:32 UTC
The first issue is that second call of "introduce variable" breaks code.
The second issue is inconsistency of "introduce variable", "introduce variable" should be available as well in Refactor main and context menus.
Comment 11 Alexander Simon 2013-11-13 19:39:51 UTC
(In reply to Alexander Pepin from comment #10)
> The first issue is that second call of "introduce variable" breaks code.
> The second issue is inconsistency of "introduce variable", "introduce
> variable" should be available as well in Refactor main and context menus.
Please, file a separate defect/enhancement.
Comment 12 Alexander Pepin 2013-11-14 17:17:44 UTC
verified in build 20131111
the feature is implemented but needs improvement.
The following bugs filed:
bug #238383
bug #238384
bug #238386