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 - [Inline variable] "Inline null" as title when inlining a variable
Summary: [Inline variable] "Inline null" as title when inlining a variable
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords: 7.4_HR_FIX
Depends on:
Blocks:
 
Reported: 2013-09-02 22:29 UTC by markiewb
Modified: 2013-09-16 11:54 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Shows the issue (39.45 KB, image/png)
2013-09-02 22:29 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
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