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 - Wrong formatting of run function
Summary: Wrong formatting of run function
Status: VERIFIED WORKSFORME
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks: 173487
  Show dependency tree
 
Reported: 2009-12-18 08:07 UTC by gualtiero65
Modified: 2011-11-16 16:40 UTC (History)
0 users

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