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 - [69cat] "Assign Return Value To New Variable" removes preceding blank line
Summary: [69cat] "Assign Return Value To New Variable" removes preceding blank line
Status: REOPENED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.0
Hardware: All All
: P4 blocker with 1 vote (vote)
Assignee: Max Sauer
URL:
Keywords:
: 198230 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-20 22:22 UTC by matthies
Modified: 2016-07-18 20:12 UTC (History)
1 user (show)

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 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.