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 235431

Summary: [Inline variable] "Inline null" as title when inlining a variable
Product: java Reporter: markiewb
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: VERIFIED FIXED    
Severity: normal CC: jiriprox, mmirilovic
Priority: P2 Keywords: 7.4_HR_FIX
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Shows the issue

Description markiewb 2013-09-02 22:29:38 UTC
Created attachment 139595 [details]
Shows the issue

* take this code
public class JavaApplication4
{
    public static void main(String[] args)
    {
       String f|oo="hello";//the caret is defined by |
       System.out.println(foo);
    }
}
* place the caret at |
* invoke "Refactor|Inline"...
* invoke "Refactor|Inline"... (again !) ->
ACTUAL: tabs with title "Inline null" are shown - see screenshot
EXPECTED: tabs with title "Inline foo" are shown (corresponding to the variable to be inlined)


Product Version: NetBeans IDE Dev (Build 201309020001)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 Ralph Ruijs 2013-09-03 13:44:32 UTC
Caused by: ec408e67acf5


changeset   : 4ad833d53d54
author      : Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date        : Tue Sep 03 15:38:35 CEST 2013
summary     : #235431 - [Inline variable] "Inline null" as title when inlining a variable
Comment 2 Jiri Prox 2013-09-04 11:02:53 UTC
verified in trunk
Comment 3 Jiri Prox 2013-09-16 11:54:46 UTC
verified in RC1