Changeset 11192 in josm for trunk/src


Ignore:
Timestamp:
2016-10-30T15:25:57+01:00 (7 years ago)
Author:
Don-vip
Message:

fix #13870 - robustness against https://bugs.openjdk.java.net/browse/JI-9044959

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java

    r10919 r11192  
    889889                } catch (PatternSyntaxException e) {
    890890                    throw new ParseError(tr(rxErrorMsg, e.getPattern(), e.getIndex(), e.getMessage()), e);
    891                 } catch (IllegalArgumentException e) {
     891                } catch (IllegalArgumentException | StringIndexOutOfBoundsException e) {
     892                    // StringIndexOutOfBoundsException catched because of https://bugs.openjdk.java.net/browse/JI-9044959
     893                    // See #13870: To remove after we switch to a version of Java which resolves this bug
    892894                    throw new ParseError(tr(rxErrorMsgNoPos, s, e.getMessage()), e);
    893895                }
Note: See TracChangeset for help on using the changeset viewer.