Open ChMThiel opened 6 months ago
After some research i found following:
In JCalMapper.deserialze(...)
row 57 there is a cast to CalendarComponent. But not all results of parseComponent(...)
are CalendarComponents (see field componentFactories
for supported component-types. In my Case Standard
is not a CalendarComponent
which leads to to ClassCastException)
Thanks for the info. In fact, line 57 should only be parsing top-level components (e.g. VTIMEZONE, VEVENT, etc.) which are all sub-classes of CalendarComponent
.
So there may be a problem with the parsing logic if it is returning a STANDARD component here. I will have a closer look.
Following Test to marshal/unmarshal a calendar to/from json fails on reading it's own json
reported exception:
java.lang.ClassCastException: class net.fortuna.ical4j.model.component.Standard cannot be cast to class net.fortuna.ical4j.model.component.CalendarComponent (net.fortuna.ical4j.model.component.Standard and net.fortuna.ical4j.model.component.CalendarComponent are in unnamed module of loader 'app')
For me it seems, the
JCalDecoder.DATE_TIME
has a problem with decoding the TimeZone-Offset. @benfortuna any idea?