Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 188659 - IOOBE when stepping through the code
IOOBE when stepping through the code
Product: javafx
Classification: Unclassified
Component: Debugger
PC Windows XP
: P2 (vote)
Assigned To: Michal Skvor
Depends on:
  Show dependency treegraph
Reported: 2010-07-14 12:06 UTC by Martin Ryzl
Modified: 2010-08-05 09:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description Martin Ryzl 2010-07-14 12:06:06 UTC
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
        return g;

Main { }

java.lang.IndexOutOfBoundsException: toIndex = 105
	at java.util.SubList.<init>(
	at java.util.RandomAccessSubList.<init>(
	at java.util.AbstractList.subList(
	at org.netbeans.modules.javafx.debugger.models.ScriptClass.getFields(
	at org.netbeans.modules.debugger.jpda.models.LocalsTreeModel.getChildrenImpl(
	at org.netbeans.modules.debugger.jpda.models.LocalsTreeModel.getChildren(
	at org.netbeans.spi.viewmodel.Models$DelegatingTreeModel.getChildren(
	at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilterSI.getChildren(
	at org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildren(
	at org.netbeans.modules.debugger.jpda.ui.models.VariablesTreeModelFilter.getChildren(
	at org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildren(
	at org.netbeans.modules.javafx.debugger.variablesfiltering.JavaFXVariablesFilter.getChildren(
	at org.netbeans.spi.viewmodel.Models$CompoundTreeModel.getChildren(
	at org.netbeans.spi.viewmodel.Models$CompoundModel.getChildren(
	at org.netbeans.modules.viewmodel.TreeModelNode$TreeModelChildren.getModelChildren(
	at org.netbeans.modules.viewmodel.TreeModelNode$
	at org.openide.util.RequestProcessor$
[catch] at org.openide.util.RequestProcessor$
Comment 1 Michal Skvor 2010-07-15 17:04:51 UTC
Works for me, I don't get any exceptions at all.
Comment 2 Martin Ryzl 2010-07-15 17:14:06 UTC
still the same - 100% reproducible on my machine even with today's builds
Comment 3 Michal Skvor 2010-08-03 13:40:08 UTC
Already fixed.
Comment 4 Alexandr Scherbatiy 2010-08-05 09:31:26 UTC
verified in NetBeans IDE Dev (Build 201008050001)

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo