IOOBE with FX 8
Sven Reimers
sven.reimers at gmail.com
Wed Jan 30 13:21:34 PST 2013
Sure
...
providers.addListener(new ListChangeListener<Provider>() {
@Override
public void onChanged(Change<? extends Provider> change) {
while (change.next()) {
if (change.wasAdded()) {
int j = 0;
for (Provider provider : change.getAddedSubList()) {
...
Thanks
Sven
On Wed, Jan 30, 2013 at 10:16 PM, Jonathan Giles
<jonathan.giles at oracle.com>wrote:
> Can you provide the code snippet you're using for the ListChangeListener?
> Are you remembering to follow the following pattern:
>
> while (change.next()) {
> ...
> }
>
> For a better code snippet, refer here: http://docs.oracle.com/javafx/**
> 2/api/javafx/collections/**ListChangeListener.Change.html<http://docs.oracle.com/javafx/2/api/javafx/collections/ListChangeListener.Change.html>
>
> -- Jonathan
>
>
> On 31/01/2013 10:10 a.m., Sven Reimers wrote:
>
>> Hi,
>>
>> trying out my FX application (vmFX on top of eFX) with latest JDK8
>> binaries
>> on Mac I often get
>>
>> java.lang.**IndexOutOfBoundsException: toIndex = 1
>> at java.util.SubList.<init>(**AbstractList.java:622)
>> at java.util.AbstractList.**subList(AbstractList.java:484)
>> at
>> com.sun.javafx.collections.**BaseModifiableObservableList.**subList(**
>> BaseModifiableObservableList.**java:145)
>> at
>> javafx.collections.**ListChangeListener$Change.**getAddedSubList(**
>> ListChangeListener.java:221)
>>
>> Is this something to report with OpenJFX or with OpenJDK 8 or shall I try
>> to dig deeper?
>>
>> Thanks
>>
>> Sven
>>
>>
>
--
Sven Reimers
* Senior Expert Software Architect
* NetBeans Dream Team Member: http://dreamteam.netbeans.org
* NetBeans Governance Board Member:
http://netbeans.org/about/os/governance.html
* Community Leader NetBeans: http://community.java.net/netbeans
Desktop Java:
http://community.java.net/javadesktop
* Duke's Choice Award Winner 2009
* Blog: http://nbguru.blogspot.com
* XING: https://www.xing.com/profile/Sven_Reimers8
* LinkedIn: http://www.linkedin.com/in/svenreimers
Join the NetBeans Groups:
* XING: http://www.xing.com/group-20148.82db20
* NUGM: http://haug-server.dyndns.org/display/NUGM/Home
* LinkedIn: http://www.linkedin.com/groups?gid=1860468
http://www.linkedin.com/groups?gid=107402
http://www.linkedin.com/groups?gid=1684717
* Oracle: https://mix.oracle.com/groups/18497
More information about the openjfx-dev
mailing list