Skip to content

2024-August-24 - 2.7.14863

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 24 Aug 18:19
676d230
Fix 12855 Failed to start game (#12856)

* Fix issue 12826 (UnitSeparator#categorize:213 - java.util.ConcurrentModificationException)

PlacePanel.java
- new method updateUnitsInUnitsToPlacePanel that ensures copying the unit collection (existed already in method updateStep, but not in gameDataChanged or updateUnits)
- Cleanup: extract new methods from declaration of variable placeMapSelectionListener which are getUnitsToPlace, getScrollPaneFromChooser, getPreferredHeight and getPreferredWidth

* PlayerUnitsPanel ToDo done via redraw

Replace
invalidate(); validate(); revalidate();getParent().invalidate();
with SwingComponents.redraw(this);

* tab Players - tooltips for technologies

Smaller fixes:
- SwingConstants instead of JLable
- method setStatColumns with List.toArray
- rename gameData to gameDataSync
- introduce synchronized method TechTableModel.getDataAndInitRowMap()

* Fix 12855 Failed to start game

Example map: World War II v3 1941
UnsupportedOperationException caused by Arrays.asList (=fixed size list) followed with method call add()