[Issue 452] New - IOOBException in ObservableElementList

View: New views
4 Messages — Rating Filter:   Alert me  

[Issue 452] New - IOOBException in ObservableElementList

by barend-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://glazedlists.dev.java.net/issues/show_bug.cgi?id=452
                 Issue #|452
                 Summary|IOOBException in ObservableElementList
               Component|glazedlists
                 Version|1.7.0
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|core
             Assigned to|jessewilson
             Reported by|barend






------- Additional comments from barend@... Wed Jul 30 17:45:24 +0000 2008 -------
I've stumbled on an issue where ObservableElementList can cause an
IndexOutOfBoundsException in java.util.ArrayList when switching to multi
listener mode.

There are two conditions:
- the Connector is smart enough to skip over some elements and attach a listener
to others
- but not smart enough to re-use the same listener object for each element it
attaches to

The exception is consistently thrown when adding the second element that the
Connector attaches a listener to, but only if there are elements in the list
which were skipped over.

I will attach a JUnit test that demonstrates the problem.

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 452] IOOBException in ObservableElementList

by barend-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://glazedlists.dev.java.net/issues/show_bug.cgi?id=452






------- Additional comments from barend@... Wed Jul 30 17:46:58 +0000 2008 -------
Created an attachment (id=39)
A JUnit test case that demonstrates the issue


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 452] IOOBException in ObservableElementList

by jplemieux :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://glazedlists.dev.java.net/issues/show_bug.cgi?id=452



User jplemieux changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |FIXED
--------------------------------------------------------------------------------




------- Additional comments from jplemieux@... Sat Aug  2 08:52:42 +0000 2008 -------
Perfect bug report and test case. It made the problem easy to find and a smaller
reproducing test case easy to write.

In the end, the problem was that my logic for switching from "single listener
mode" to "multi listener mode" sort of assumed that the Connector was *always*
installing an EventListener, when that need not be the case.

The latest GL jars contain the fix now.

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 452] IOOBException in ObservableElementList

by BRANDS-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://glazedlists.dev.java.net/issues/show_bug.cgi?id=452



User brands changed the following:

                What    |Old value                 |New value
================================================================================
        Target milestone|milestone 1               |1.8.0
--------------------------------------------------------------------------------




------- Additional comments from brands@... Tue Sep 16 19:04:28 +0000 2008 -------
will be in 1.8

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...

LightInTheBox - Buy quality products at wholesale price!