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.
Summary: | Last curly bracket is not properly formatted | ||
---|---|---|---|
Product: | javafx | Reporter: | Alexandr Scherbatiy <sunflower> |
Component: | Editor | Assignee: | Adam Sotona <asotona> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | esmithbss |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 173487 |
Description
Alexandr Scherbatiy
2010-02-02 05:54:48 UTC
*** Bug 180149 has been marked as a duplicate of this bug. *** The same is for functions: Steps to reproduce: - Copy the code to the editor: ------------------------------------------------------------ function run() { } ------------------------------------------------------------ - Format the code The last bracket is not properly formatted: ------------------------------------------------------------ function run() { } ------------------------------------------------------------ Decreasing priority. It's not P2. 1. It is the regression from the previous relese 2. It is common use case. Usually the JavaFX classes have methods and incorrect formatting makes it useless for using for the whole code. 1. It's not regression. That bug was before. 2. It is not common, it occurs only when there is exact number of spaces as current indent (4 in example below). If you add or remove one space - it formatted correctly. And it's not in methods, it is in any block. NetBeans-JavaFX-Soma: #149 - Format the code ----------------------------------- import javafx.scene.layout.HBox; HBox { } ----------------------------------- The result is: ----------------------------------- import javafx.scene.layout.HBox; HBox { } ----------------------------------- The code is not formatted: ----------------------------------- import javafx.util.Math; public class FXVector { public-init var x: Number; public-init var y: Number; public function getLength(): Number { return Math.sqrt(x * x + y * y); } } ----------------------------------- *** Bug 185665 has been marked as a duplicate of this bug. *** . Closing all bugs filed against JavaFX 1.x as wontfix. We will support JavaFX 2.0 - please keep opened only bugs against the new release. Thanks. |