Please use the Apache issue tracking system for new NetBeans issues ( !!

Bug 173468

Summary: Formatting breaks line for simple function body
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: EditorAssignee: Anton Chechel <manowar>
Status: VERIFIED FIXED QA Contact: issues <>
Priority: P3 CC: sustaining
Version: 6.x   
Target Milestone: 6.x   
Hardware: All   
OS: All   
Whiteboard: 68patch1-verified
Issue Type: DEFECT Exception Report:
Bug Depends on:    
Bug Blocks: 173487    

Description Alexandr Scherbatiy 2009-10-01 10:13:53 UTC 

  Product Version         = NetBeans IDE Dev (Build 200909301401) (#c01f45755f4f)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc.

Steps to reproduce:

 - Create a JavaFX Script file:
function sqr( x:Number) { x * x } 

- Format code
  The result is:
     function sqr(x : Number) {

Code formatting should not break a function body which is written in the same line.
The result of the formatting should be:
function sqr( x:Number) { x * x }
Comment 1 Anton Chechel 2009-10-16 13:43:49 UTC
This not a bug but feature. New lines behavior is described in formatting settings (Tools-Options-Editor-Formatting).
For now I am using java settings, but later it will be rewritten for javafx. See
Comment 2 Alexandr Scherbatiy 2009-10-27 15:55:28 UTC
The issue is still valid and the implementing the  JavaFX editor settings does not mean that the issue automatically
will be fixed.
Comment 3 Anton Chechel 2009-11-11 10:45:57 UTC
Comment 4 Alexandr Scherbatiy 2009-11-20 04:43:33 UTC
The issue is still reproduced in build 200911200201.

The result of the code 'function sqr( x:Number) { x * x }' formatting is
function sqr(x: Number) {
    x * x
Comment 5 Petr Suchomel 2009-11-20 05:39:16 UTC
Sorry, but does this qualify to be a P2 issue?
Comment 6 Alexandr Scherbatiy 2009-11-20 05:43:53 UTC
Lowered priority to P3
Comment 7 Anton Chechel 2009-11-24 08:12:23 UTC
Comment 8 Alexandr Scherbatiy 2009-12-09 03:46:16 UTC
verified in NetBeans-JavaFX-Soma  #60
Comment 9 Petr Suchomel 2010-01-15 03:25:41 UTC
Fixed in release68_fixes
Comment 10 Alexandr Scherbatiy 2010-01-25 04:24:29 UTC
Verified in from /builds/netbeans/6.8/fixes
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo