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 168715 - "Assign Return Value" hint for constructor call is not available on complete instantiation expression
Summary: "Assign Return Value" hint for constructor call is not available on complete ...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Max Sauer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-16 22:28 UTC by matthies
Modified: 2009-07-23 07:43 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 matthies 2009-07-16 22:28:18 UTC
In a statement like "new Foo();", the "Assign Return Value To New Variable" hint is only offered on "Foo". It should be 
offered on "new " part too (cf. with mark occurrences).

Also with an inner class instantiation expressions like "outer.new Inner();" or "getOuter().new Inner();", the hint 
should be available on "outer.new Inner" and "getOuter().new Inner", respectively, just as in "System.console().readLine
();" it is available anywhere on "System.console().readLine".
Comment 1 Max Sauer 2009-07-20 11:41:28 UTC
I have a fix prepared, will be part of my next push.
Comment 3 Quality Engineering 2009-07-23 07:43:10 UTC
Integrated into 'main-golden', will be available in build *200907230201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/67135dc5e587
User: Max Sauer <msauer@netbeans.org>
Log: #168715: AssignResultToVariable available on whole NewClassTree