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

Summary: Formatting with function run and args adds spaces or lines
Product: javafx Reporter: arittner <arittner>
Component: EditorAssignee: Anton Chechel <manowar>
Status: VERIFIED WORKSFORME    
Severity: normal CC: arittner
Priority: P4    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
URL: http://www.netbeans-forum.de/viewtopic.php?f=33
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 173487    

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)