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.
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)
Created attachment 87685 [details] stacktrace
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.
changing milestone
fixed in http://hg.netbeans.org/javafx/rev/d9ef82934f3c
verified in netbeans-trunk-nightly-200909221401-javafx-full.zip