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 150783

Summary: [69cat] "Assign Return Value To New Variable" removes preceding blank line
Product: java Reporter: matthies <matthies>
Component: HintsAssignee: Max Sauer <msauer>
Status: REOPENED ---    
Severity: blocker CC: pekarna
Priority: P4    
Version: 7.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description matthies 2008-10-20 22:22:55 UTC
EXample:

    class Test
    {
        public static void main(String[] args) throws Exception
        {
            // some code here, followed by a blank line

            System.currentTimeMillis();
        }
    }

Performing "Assign Return Value To New Variable" on the currentTimeMillis() call results in:

    class Test
    {
        public static void main(String[] args) throws Exception
        {
            // some code here, followed by a blank line
            long currentTimeMillis = System.currentTimeMillis();
        }
    }

Product Version: NetBeans IDE Dev (Build 200810181401)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Comment 1 Jiri Prox 2008-10-21 12:08:15 UTC
Reproducible, but not so serious IMHO
Comment 2 Max Sauer 2008-11-25 16:04:59 UTC
This will be resolved LATER.
Comment 3 Quality Engineering 2009-11-02 11:02:46 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX
Comment 4 matthies 2010-05-26 20:24:23 UTC
Still applies in 6.9.
Comment 5 pekarna 2011-05-02 02:02:32 UTC
*** Bug 198230 has been marked as a duplicate of this bug. ***
Comment 6 pekarna 2011-05-02 02:03:37 UTC
Not serious, but annoying...
Comment 7 pekarna 2011-05-02 02:05:28 UTC
Other "Assign Return Value To New Variable" bugs:
http://netbeans.org/bugzilla/buglist.cgi?quicksearch=Assign+Return+Value+To+New+Variable
Comment 8 Martin Balin 2016-07-07 07:18:57 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 9 matthies 2016-07-18 20:12:43 UTC
Still reproducable in current dev build.