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

Summary: [Assign ret. Value To New Variable] does not respect 'Show As' settings
Product: java Reporter: Max Sauer <msauer>
Component: HintsAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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