Changeset 10322 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2016-06-04T15:23:22+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #12894 - JOSM does not start with Java 9b116+

File:
1 edited

Legend:

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

    r10223 r10322  
    3131import java.util.Map;
    3232import java.util.Map.Entry;
     33import java.util.MissingResourceException;
    3334import java.util.Objects;
    3435import java.util.ResourceBundle;
     
    13241325                Utils.setObjectsAccessible(field);
    13251326                field.set(null, ResourceBundle.getBundle("sun.awt.resources.awt"));
    1326             } catch (ReflectiveOperationException e) {
    1327                 if (Main.isTraceEnabled()) {
    1328                     Main.trace(e.getMessage());
    1329                 }
     1327            } catch (ReflectiveOperationException | MissingResourceException e) {
     1328                Main.warn(e);
    13301329            }
    13311330        }
Note: See TracChangeset for help on using the changeset viewer.