Ignore:
Timestamp:
2018-01-26T21:37:00+01:00 (22 months ago)
Author:
Don-vip
Message:

fix #15662 - allow JOSM to open JAR URLs containing exclamation marks (workaround to https://bugs.openjdk.java.net/browse/JDK-4523159)

File:
1 edited

Legend:

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

    r13352 r13356  
    164164            }
    165165
    166             if ("file".equals(url.getProtocol())) {
     166            String protocol = url.getProtocol();
     167            if ("file".equals(protocol) || "jar".equals(protocol)) {
    167168                try {
    168                     return url.openStream();
     169                    return Utils.openStream(url);
    169170                } catch (IOException e) {
    170171                    throw new OsmTransferException(e);
Note: See TracChangeset for help on using the changeset viewer.