Changeset 5195 in josm


Ignore:
Timestamp:
Apr 16, 2012 10:27:19 PM (13 months ago)
Author:
simon04
Message:

see #6964 - display exceptions during parallel startup initialization

File:
1 edited

Legend:

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

    r5177 r5195  
    328328 
    329329        try { 
    330             Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors()).invokeAll(tasks); 
    331         } catch (InterruptedException ex) { 
     330            for (Future<Void> i : Executors.newFixedThreadPool( 
     331                    Runtime.getRuntime().availableProcessors()).invokeAll(tasks)) { 
     332                i.get(); 
     333            } 
     334        } catch (Exception ex) { 
    332335            throw new RuntimeException(ex); 
    333336        } 
     
    624627    /** 
    625628     * The type of a command line parameter, to be used in switch statements. 
    626      * @see paramType 
     629     * @see #paramType 
    627630     */ 
    628631    private enum DownloadParamType { httpUrl, fileUrl, bounds, fileName } 
     
    681684     * @param rawGps Flag to download raw GPS tracks 
    682685     * @param b The bounds value 
    683      * @see downloadFromParamBounds(final boolean rawGps, String s) 
    684      * @see downloadFromParamHttp 
     686     * @see #downloadFromParamBounds(boolean, String) 
     687     * @see #downloadFromParamHttp 
    685688     */ 
    686689    private static void downloadFromParamBounds(final boolean rawGps, Bounds b) { 
Note: See TracChangeset for help on using the changeset viewer.