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 186477 - Formatting with function run and args adds spaces or lines
Summary: Formatting with function run and args adds spaces or lines
Status: VERIFIED WORKSFORME
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P4 normal (vote)
Assignee: Anton Chechel
URL: http://www.netbeans-forum.de/viewtopi...
Keywords:
Depends on:
Blocks: 173487
  Show dependency tree
 
Reported: 2010-05-21 08:00 UTC by arittner
Modified: 2010-06-17 09:44 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 arittner 2010-05-21 08:00:06 UTC
This small code snippet:

function run(    args : String[]) : Void {
    print("...");    
    print("...");
    
}

adds at any Format two additional spaces before the args Parameter. Like this:

function run(      args : String[]) : Void {

function run(        args : String[]) : Void {

function run(          args : String[]) : Void {


This code snippet is very weired:

function run(args : String[]) {  
    print("...");    
    {
      print("...");
    }    
}


Formats to:

function run(  args 
    
  : String[]) {  
    print("...");    
    {
      print("...");
    }    
}
 

Product Version: NetBeans IDE 6.8 (Build 200912041610)
Java: 1.6.0_20; Java HotSpot(TM) Client VM 16.3-b01
System: Windows XP version 5.1 running on x86; Cp1252; de_DE (nb)
Userdir: C:\Dokumente und Einstellungen\Rittner\.netbeans\6.8


br, josh.
Comment 1 Alexandr Scherbatiy 2010-05-21 10:32:54 UTC
Please, use the NetBeans 6.9 http://netbeans.org/community/releases/69/
It should be fixed there.
Comment 2 Anton Chechel 2010-05-27 15:27:52 UTC
this issue has been fixed already
Comment 3 Alexandr Scherbatiy 2010-06-17 09:44:17 UTC
verified in NetBeans IDE Dev (Build 201006170001)