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.
following code will cause an exception - see below: import javafx.scene.*; import javafx.scene.paint.*; import javafx.scene.shape.*; class Main extends CustomNode { override function create():Node { var a = 100; var g = Group { // <<< Breakpoint here, then keep pressing F8 content: for(x in [0..4]) { Rectangle { y: indexof x * 20 width: bind a height: 10 fill:Color.RED } } }; return g; } } Main { } java.lang.IndexOutOfBoundsException: toIndex = 105 at java.util.SubList.<init>(AbstractList.java:602) at java.util.RandomAccessSubList.<init>(AbstractList.java:758) at java.util.AbstractList.subList(AbstractList.java:468) at org.netbeans.modules.javafx.debugger.models.ScriptClass.getFields(ScriptClass.java:62) at org.netbeans.modules.debugger.jpda.models.LocalsTreeModel.getChildrenImpl(LocalsTreeModel.java:164) at org.netbeans.modules.debugger.jpda.models.LocalsTreeModel.getChildren(LocalsTreeModel.java:129) at org.netbeans.spi.viewmodel.Models$DelegatingTreeModel.getChildren(Models.java:1510) at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilterSI.getChildren(VariablesTreeModelFilterSI.java:154) at org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildren(Models.java:774) at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getChildren(VariablesTreeModelFilter.java:221) at org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildren(Models.java:774) at org.netbeans.modules.javafx.debugger.variablesfiltering.JavaFXVariablesFilter.getChildren(JavaFXVariablesFilter.java:184) at org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildren(Models.java:774) at org.netbeans.spi.viewmodel.Models$CompoundModel.getChildren(Models.java:3798) at org.netbeans.modules.viewmodel.TreeModelNode$TreeModelChildren.getModelChildren(TreeModelNode.java:1285) at org.netbeans.modules.viewmodel.TreeModelNode$TreeModelChildren.run(TreeModelNode.java:1245) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1957)
Works for me, I don't get any exceptions at all.
still the same - 100% reproducible on my machine even with today's builds
Already fixed.
verified in NetBeans IDE Dev (Build 201008050001)