Changeset 19599 in josm for trunk


Ignore:
Timestamp:
2026-07-23T18:34:52+02:00 (37 hours ago)
Author:
stoecker
Message:

properly catch class cast exception in JSOn reader, fix #24658

File:
1 edited

Legend:

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

    r18723 r19599  
    1 // License: GPL. For details, see LICENSE file.
    21package org.openstreetmap.josm.io;
    32
     
    109import java.io.InputStreamReader;
    1110import java.io.StringReader;
     11import java.lang.ClassCastException;
    1212import java.nio.charset.StandardCharsets;
    1313import java.util.ArrayList;
     
    473473            }
    474474            mergeEqualMultipolygonWays();
    475         } catch (IOException | IllegalArgumentException | JsonParsingException e) {
     475        } catch (IOException | IllegalArgumentException | ClassCastException | JsonParsingException e) {
    476476            throw new IllegalDataException(e);
    477477        }
Note: See TracChangeset for help on using the changeset viewer.