Changeset 12887 in josm


Ignore:
Timestamp:
2017-09-22T16:13:52+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15343 - catch Java 9 exceptions

Location:
trunk/src/org/openstreetmap/josm
Files:
3 edited

Legend:

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

    r12886 r12887  
    151151import org.openstreetmap.josm.tools.I18n;
    152152import org.openstreetmap.josm.tools.ImageProvider;
     153import org.openstreetmap.josm.tools.JosmRuntimeException;
    153154import org.openstreetmap.josm.tools.Logging;
    154155import org.openstreetmap.josm.tools.OpenBrowser;
     
    10911092                    UIManager.put("FileChooser.useSystemExtensionHiding", Boolean.FALSE);
    10921093                }
    1093             } catch (NumberFormatException | ReflectiveOperationException e) {
     1094            } catch (NumberFormatException | ReflectiveOperationException | JosmRuntimeException e) {
    10941095                Logging.error(e);
    10951096            }
  • trunk/src/org/openstreetmap/josm/tools/PlatformHookWindows.java

    r12856 r12887  
    310310            }
    311311            sb.append(" (").append(getCurrentBuild()).append(')');
    312         } catch (ReflectiveOperationException e) {
     312        } catch (ReflectiveOperationException | JosmRuntimeException e) {
    313313            Logging.error(e);
    314314        }
  • trunk/src/org/openstreetmap/josm/tools/WinRegistry.java

    r12279 r12887  
    6363            regEnumKeyEx = userClass.getDeclaredMethod("WindowsRegEnumKeyEx", int.class, int.class, int.class);
    6464            Utils.setObjectsAccessible(regOpenKey, regCloseKey, regQueryValueEx, regEnumValue, regQueryInfoKey, regEnumKeyEx);
    65         } catch (SecurityException | ReflectiveOperationException e) {
     65        } catch (RuntimeException | ReflectiveOperationException e) {
    6666            throw new JosmRuntimeException(e);
    6767        }
Note: See TracChangeset for help on using the changeset viewer.