Changeset 17080 in josm for trunk/src


Ignore:
Timestamp:
2020-10-01T06:38:03+02:00 (4 years ago)
Author:
GerdP
Message:

fix #19532:IAE: Cannot modify the id counter backwards

  • run "Initializing internal boundaries data" in beforeInitializationTasks so that we have no concurrent thread

This just avoids the situation were the problem occured, the problem itself still needs to be fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MainInitialization.java

    r16358 r17080  
    8181                MainApplication.registerActionShortcut(MainApplication.menu.help,
    8282                        Shortcut.registerShortcut("system:help", tr("Help"), KeyEvent.VK_F1, Shortcut.DIRECT));
     83            }),
     84            new InitializationTask(tr("Initializing internal boundaries data"), () -> {
     85                Territories.initialize();
     86                if (Config.getPref().getBoolean("override.numbering.format", true)) {
     87                    I18n.initializeNumberingFormat();
     88                }
    8389            })
    8490        );
     
    111117                    }
    112118                }),
    113             new InitializationTask(tr("Initializing internal boundaries data"), () -> {
    114                 Territories.initialize();
    115                 if (Config.getPref().getBoolean("override.numbering.format", true)) {
    116                     I18n.initializeNumberingFormat();
    117                 }
    118             }),
    119119            new InitializationTask(tr("Initializing validator"), OsmValidator::initialize),
    120120            new InitializationTask(tr("Initializing presets"), TaggingPresets::initialize),
Note: See TracChangeset for help on using the changeset viewer.