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 178770 - Sequence of functions type is not properly formatted
Summary: Sequence of functions type is not properly formatted
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks: 173487
  Show dependency tree
 
Reported: 2009-12-17 03:10 UTC by Alexandr Scherbatiy
Modified: 2010-03-31 12: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 Alexandr Scherbatiy 2009-12-17 03:10:20 UTC
Build NetBeans-dev-javafx-main-123-on-091217-full.zip 

  Product Version         = NetBeans IDE Dev (Build javafx-main-123-on-091217)
(#29f2a49e0d78)
  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:

- Format the code:
--------------------------------------------------------------
import javafx.scene.CustomNode;
import javafx.scene.input.MouseEvent;

    abstract class MyCustomNode extends CustomNode {

        public var onMouseClickedEvents:( function (s : MouseEvent): Void)[];

        override var onMouseClicked =  function (s: MouseEvent): Void {
            for(event in onMouseClickedEvents){ event(s); }
        }

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

The result is:

--------------------------------------------------------------
import javafx.scene.CustomNode;
import javafx.scene.input.MouseEvent;

abstract class MyCustomNode extends CustomNode {

    public var onMouseClickedEvents: 
        (   
                  
            
function (s : MouseEvent): Void)[];

        override var onMouseClicked =  function (s: MouseEvent): Void {
            for(event in onMouseClickedEvents){ event(s); }
        }

    }
--------------------------------------------------------------
Comment 1 Anton Chechel 2010-01-11 08:20:27 UTC
Compiler issue: http://javafx-jira.kenai.com/browse/JFXC-3954
Comment 2 Anton Chechel 2010-03-30 14:55:53 UTC
fixed
Comment 3 Alexandr Scherbatiy 2010-03-31 12:18:40 UTC
verified in NetBeans-JavaFX-Soma: #203