Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.1.2
-
Fix Version/s: 2.1.3
-
Component/s: Google Earth KML Output
-
Labels:None
-
Number of attachments :
Description
The XSDateTimeBinding used to take a Calendar as a parameter, but recent changes made it work only with a Date instead.
The following code in the KMLMapTransformer broke as a result:
protected String encodeDateTime(Date date) { if (date != null) { Calendar c = Calendar.getInstance(); c.setTime(date); return new XSDateTimeBinding().encode(c, null); } else { return null; } }
Issue Links
- depends upon
-
GEOT-3957
Regression: XSDateTimeBinding cannot handle calendar anymore
-
We can change the KML code to avoid building the calendar, but I'm wondering if other code might have been broken by the XSDateTimeBinding implementation changes?
The old code in XSDateTimeBinding used to be:
while the new code is:
The KML call results in a ClassCastException