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 184262

Summary: Value of the overridden attribute is not formatted
Product: javafx Reporter: Alexandr Scherbatiy <sunflower>
Component: EditorAssignee: Anton Chechel <manowar>
Status: VERIFIED FIXED    
Severity: normal CC: tor
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-04-15 11:22:08 UTC
NetBeans IDE 6.9 Beta 

  Product Version         = NetBeans IDE 6.9 Beta (Build 201004142028)
(#b0fcf3f1c0b5)
  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:

- Copy the code to the editor:
-------------------------------------------------
import javafx.scene.Node;
import javafx.scene.shape.Circle;
import javafx.scene.paint.Color;

class A {

    public var shape: Node[] = [
Circle {
centerX: 100, centerY: 100
radius: 40
fill: Color.BLACK
}
            ];
}

class B extends A {

    override var shape = [
        
Circle {
centerX: 100, centerY: 100
radius: 40
fill: Color.BLACK

}       
        ];
}
-------------------------------------------------
- Format the code

The result is:
-------------------------------------------------
class B extends A {

    override var shape = [
        
Circle {
centerX: 100, centerY: 100
radius: 40
fill: Color.BLACK

}       
        ];
}
-------------------------------------------------
Comment 1 Anton Chechel 2010-04-19 12:57:58 UTC
Compiler issue: http://javafx-jira.kenai.com/browse/JFXC-4294
Comment 2 Anton Chechel 2010-05-25 09:52:34 UTC
fixed
http://hg.netbeans.org/javafx/rev/9849f57777e4
Comment 3 Alexandr Scherbatiy 2010-05-26 12:23:51 UTC
verified in netbeans-trunk-nightly-201005260001-javafx-windows.exe
Comment 4 Anton Chechel 2010-05-31 13:24:07 UTC
*** Bug 186457 has been marked as a duplicate of this bug. ***