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 201006210001) VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02 OS: Windows XP Stacktrace: java.lang.IndexOutOfBoundsException: -1 at com.sun.tools.mjavac.util.List.get(List.java:412) at org.netbeans.modules.javafx.editor.semantic.MethodExitDetector.visitBlockExpression(MethodExitDetector.java:257) at org.netbeans.modules.javafx.editor.semantic.MethodExitDetector.visitBlockExpression(MethodExitDetector.java:62) at com.sun.tools.javafx.tree.JFXBlock.accept(JFXBlock.java:99) at com.sun.javafx.api.tree.JavaFXTreePathScanner.scan(JavaFXTreePathScanner.java:63) at org.netbeans.api.javafx.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:94)
Created attachment 100268 [details] stacktrace
Steps to reproduce: - Copy the code to the editor: ---------------------------------------- class MDShape{ } function create(dim:Integer, size:Number) { } ---------------------------------------- For the function 'create' type the return type 'function create(dim:Integer, size:Number):MD' - Press - Select MDShape from the popup list The IndexOutOfBoundsException exception pops up.
Just use the code completion for the function return type while the function body is empty. The exception pops up: ------------------------- function f():Boolean{ } -------------------------
Is it the JavaFX compiler issue?
Created attachment 100480 [details] stacktrace
No, this is NetBeans issue. And not caused by code completion, rather by the semantic highlighter.
fixed http://hg.netbeans.org/javafx/rev/027b395e7cca
verified in NetBeans IDE 6.9.1 Dev (Build 201006292301)
Verified with NetBeans IDE 6.9.1 Dev (Build 201007052301)