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

see #15343 - catch Java 9 exceptions

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • 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.