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 109250 - [Assign ret. Value To New Variable] does not respect 'Show As' settings
Summary: [Assign ret. Value To New Variable] does not respect 'Show As' settings
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-10 15:10 UTC by Max Sauer
Modified: 2009-11-02 11:03 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 Max Sauer 2007-07-10 15:10:05 UTC
Assign Return Value To New Variable hints does not respect 'Show As' settings made inside Options dialog.

Steps to reproduce:
-------------------
1) Have following code:
    public int add(int a, int b) {
	return a + b;
    }
    
    public void foo() {
	add(1,2);
    }
2) Invoke Tools|Options|Java Code|Hints|General|Assign Return Value to new Variable
3) Change 'Show As' combo to 'Warning' and confirm OD
=> No warning shown
=> Note that with default 'Show As' setting, the warning is displayed only when carret is inside method call (ie. not
whole current line of code)

---
Product Version: NetBeans IDE Dev (Build 070710) 
Java: 1.6.0_02-ea; Java HotSpot(TM) Client VM 1.6.0_02-ea-b02 
System: Linux version 2.6.12-1.1390_FC4smp running on i386; 
UTF-8; en_US (nb) Userdir: /home/ms159439/.netbeans/dev
Comment 1 Jan Lahoda 2008-11-21 10:53:46 UTC
later.
Comment 2 Quality Engineering 2009-11-02 11:03:38 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX