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 - Extra spaces inserted in gradient initialization object
Summary: Extra spaces inserted in gradient initialization object
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks: 173487
  Show dependency tree
 
Reported: 2010-05-12 16:20 UTC by Torbjorn Norbye
Modified: 2010-05-17 08:18 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 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