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 186032

Summary: Extra spaces inserted in gradient initialization object
Product: javafx Reporter: Torbjorn Norbye <tor>
Component: EditorAssignee: Anton Chechel <manowar>
Status: VERIFIED FIXED    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 173487    

Description Torbjorn Norbye 2010-05-12 16:20:02 UTC
Here's a code snippet which illustrates the problem:

Rectangle {
    fill: bind LinearGradient {
        endX: 0
        stops: [
            Stop { offset: 0, color: Color.BLACK },
            Stop { offset: 1, color: Color.WHITE },
        ]
    }
}


When I format this, I end up with this:

Rectangle {
    fill: bind LinearGradient {
        endX:  0
        stops:  [
            Stop { offset:  0, color:  Color.BLACK },
            Stop { offset:  1, color:  Color.WHITE },
        ]
    }
}

There are now extra spaces before all the property values in this object -- before the 0's, 1's, Colors, and even before the sequence [.

I'm not sure what about this code fragment triggers this, because I haven't seen it in other similar objects in the files I've just tried formatting.
Comment 1 Anton Chechel 2010-05-13 15:50:19 UTC
This caused by compiler issue http://javafx-jira.kenai.com/browse/JFXC-4360.

Fixed by workaround though.
http://hg.netbeans.org/javafx/rev/f393b6e27279
Comment 2 Alexandr Scherbatiy 2010-05-17 08:18:27 UTC
verified in NetBeans-JavaFX-Soma: #253