[Geoserver-devel] [JIRA] (GEOS-7305) KML support Compilation failure - incompatible types: bad type in conditional expression

Marcus Sen created an issue

GeoServer / BugGEOS-7305

KML support Compilation failure - incompatible types: bad type in conditional expression

Issue Type:

BugBug

Assignee:

Unassigned

Components:

Google Earth KML Output

Created:

10/Nov/15 2:47 PM

Environment:

I’m getting a compilation failure when trying to build GeoServer master.

— maven-compiler-plugin:2.3.2:compile (default-compile) @ gs-kml —
Compiling 58 source files to E:\Users\mase\work\Projects\OGC_1G\GeoServerDev\geoserver\src\kml\target\classes

COMPILATION ERROR :

org/geoserver/kml/icons/IconService.java:[80,53] error: incompatible types: bad type in conditional expression
1 error

The line
https://github.com/geoserver/geoserver/blob/master/src/kml/src/main/java/org/geoserver/kml/icons/IconService.java#L79

has a Map<String, Object> KvpUtils.parseQueryString(String) being assigned to Map<String, String> properties.

I guess this is Java 8 getting stricter as it has compiled fine before, I’m surprised/confused why this hasn’t been found by anyone else yet and am not sure exactly what I may have changed to get this problem but the code does seem to need changing anyway so I will make a pull request with fix.

Priority:

HighestHighest

Reporter:

Marcus Sen

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v7.0.0-OD-08-005#70107-sha1:5fb2f7e)

Atlassian logo