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 172279 - IllegalArgumentException: OTHER
Summary: IllegalArgumentException: OTHER
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: J Bachorik
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-15 12:43 UTC by Alexandr Scherbatiy
Modified: 2009-09-23 10:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 157208


Attachments
stacktrace (8.22 KB, text/plain)
2009-09-15 12:44 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2009-09-15 12:43:59 UTC
Build: NetBeans IDE Dev (Build 200909140908)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Windows XP, 5.1, x86

User Comments:
kharezlak: while using code complition



Stacktrace: 
java.lang.IllegalArgumentException: OTHER
        at org.netbeans.api.javafx.source.ElementHandle.encodeType(ElementHandle.java:450)
        at org.netbeans.api.javafx.source.ElementHandle.createExecutableDescriptor(ElementHandle.java:469)
        at org.netbeans.api.javafx.source.ElementHandle.create(ElementHandle.java:323)
        at org.netbeans.modules.javafx.source.indexing.JavaFXIndexer$1.visitFunctionDefinition(JavaFXIndexer.java:161)
        at org.netbeans.modules.javafx.source.indexing.JavaFXIndexer$1.visitFunctionDefinition(JavaFXIndexer.java:118)
        at com.sun.tools.javafx.tree.JFXFunctionDefinition.accept(JFXFunctionDefinition.java:106)
Comment 1 Alexandr Scherbatiy 2009-09-15 12:44:07 UTC
Created attachment 87685 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2009-09-15 12:46:43 UTC
Steps to reproduce:

- Copy the code to the editor:
-------------------------------------------------------

import javafx.util.Math;


public class MyModel extends Model{


    public var engines:EngineModel[];

    public var defaultPropellent:Number = 1.0;


    public function acceleration()


    public function acceleration(propellent:Number){

        //println("[spacecrfat model] acceleration: {propelent}");


        if(propellent != 0){
            var sign = Math.signum(propellent);
            out("sign: {sign}");

            var d = if(sign < 0) Math.PI else 0;
            var p = Math.abs(propellent);


            for(engine in engines){
                engine.direction = d;
                engine.propelent = p;
            }
        }


    }

    public function deacceleration(propellent:Number){
    }

    public function turn(direction:Number, propellent:Number){
    }

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

The exception pops up.
Comment 3 J Bachorik 2009-09-18 07:21:34 UTC
changing milestone
Comment 4 J Bachorik 2009-09-21 21:29:08 UTC
fixed in http://hg.netbeans.org/javafx/rev/d9ef82934f3c
Comment 5 Alexandr Scherbatiy 2009-09-23 10:03:29 UTC
verified in netbeans-trunk-nightly-200909221401-javafx-full.zip