-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
None
-
JDK-8-Build-b121
JDK-8-Build-b121:
package com.sun.javafx.collections;
public class ObservableListWrapper<E> extends ModifiableObservableListBase<E> implements
ObservableList<E>, SortableList<E>, RandomAccess {
....
line 159
@Override
public void remove(int fromIndex, int toIndex) {
beginChange();
for (int i = fromIndex; i < toIndex; ++i) {
remove(fromIndex);
}
endChange();
}
I guess the remove() method should be called with "i" rather then "fromIndex" parameter.
package com.sun.javafx.collections;
public class ObservableListWrapper<E> extends ModifiableObservableListBase<E> implements
ObservableList<E>, SortableList<E>, RandomAccess {
....
line 159
@Override
public void remove(int fromIndex, int toIndex) {
beginChange();
for (int i = fromIndex; i < toIndex; ++i) {
remove(fromIndex);
}
endChange();
}
I guess the remove() method should be called with "i" rather then "fromIndex" parameter.