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 178857

Summary: Wrong formatting of run function
Product: javafx Reporter: gualtiero65
Component: EditorAssignee: Anton Chechel <manowar>
Status: VERIFIED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 173487    

Description gualtiero65 2009-12-18 08:07:39 UTC
Hi,

I have following issue with the format function inside the IDE.

If I have following code:

function run (args:String[]) {
    println(sizeof args);
}

after the format command I get

function run( 
    args 
:String[]) {
    println(sizeof args);
}

which is compilable but not very nice to see.
Comment 1 Anton Chechel 2010-03-10 09:38:30 UTC
this issuue has been already fixed
Comment 2 Alexandr Scherbatiy 2010-03-11 05:34:28 UTC
NetBeans-JavaFX-Soma:  #181  Mar 11, 2010 12:01:00 AM


- Format the code
-------------------------------------
function run(args :String[]) {
    println(sizeof args);
}

var a = 10;
-------------------------------------

The result is:
-------------------------------------
function run(  args 

  :String[]) {
    println(sizeof args);
}

var a = 10;
-------------------------------------
Comment 3 Anton Chechel 2010-03-22 15:59:11 UTC
Works for me in current version.
Comment 4 Alexandr Scherbatiy 2010-03-23 08:43:55 UTC
verified in NetBeans-JavaFX-Soma: #194