Bug #3111

Mis à jour par Matthieu Decorde il y a plus de 4 ans

Stack 1:
<pre>
java.lang.ArrayIndexOutOfBoundsException: 0


at org.txm.annotation.urs.toolbar.UnitToolbar.highlightType(UnitToolbar.java:641)


at org.txm.annotation.urs.toolbar.UnitToolbar$13.completed(UnitToolbar.java:1177)


at org.txm.edition.rcp.editors.EditionPanel$1.completed(EditionPanel.java:323)


at org.eclipse.swt.browser.IE.lambda$6(IE.java:656)


at org.eclipse.swt.ole.win32.OleEventTable.sendEvent(OleEventTable.java:55)


at org.eclipse.swt.ole.win32.OleEventSink.notifyListener(OleEventSink.java:156)
</pre>
Stack 2:
<pre>


-----------

java.util.ConcurrentModificationException


at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:719)


at java.util.LinkedHashMap$LinkedKeyIterator.next(LinkedHashMap.java:742)


at org.txm.annotation.urs.view.ElementPropertiesView.loadElement(ElementPropertiesView.java:247)


at org.txm.annotation.urs.toolbar.URSAnnotationToolbar.updatePropertiesView(URSAnnotationToolbar.java:107)


at org.txm.annotation.urs.toolbar.UnitToolbar.tryHighlightingUnitsWord(UnitToolbar.java:1032)


at org.txm.annotation.urs.toolbar.UnitToolbar$8.mouseUp(UnitToolbar.java:399)


at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:221)


at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86)


at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4428)



</pre>

h3. Solution

* Stack 1: the line error is no more aligned with current code -> hard to find what is falling in TXM 0.8.2
** need to test more on Windows and TXM 0.8.2
* Stack 2: the iterated list is now copyied before working on it (this avoids ConcurrentModification exceptions)

Retour