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 179454 - Editor shifts curly bracket to the right for overridden function
Summary: Editor shifts curly bracket to the right for overridden function
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks: 173487
  Show dependency tree
 
Reported: 2010-01-13 06:51 UTC by Alexandr Scherbatiy
Modified: 2010-02-03 02:57 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 Alexandr Scherbatiy 2010-01-13 06:51:27 UTC
NetBeans-JavaFX-Soma: #93

  Product Version         = NetBeans IDE Dev (Build 201001110200) (#fff13d755928)
  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 ComponentModel JavaFX class:
------------ ComponentModel.fx  -------------
public class ComponentModel {

    public var name: String;

    public function code(): String { "" }
}
------------------------------------------

- Create FunctionModelJavaFX class:
------------ FunctionModel.fx  -------------
public class FunctionModel extends ComponentModel {

    override function code() {
        "function {name} \{\}"
    }

}
------------------------------------------

- Format the FunctionModel class some times

------------------------------------------
    override function code()             {
        "function {name} \{\}"
    }
------------------------------------------

  The curly bracket is shifted to the right
Comment 1 Anton Chechel 2010-01-27 06:51:52 UTC
fixed
http://hg.netbeans.org/javafx/rev/eafa409c3a1f
Comment 2 Alexandr Scherbatiy 2010-02-03 02:57:01 UTC
verified in NetBeans-JavaFX-Soma: #141