#139 Empty RDATEs when reading /zoneinfo/Europe/Prague.ics

pending-fixed
Ben Fortuna
Parsing (53)
5
2011-12-02
2011-12-01
Jochen Gazda
No

Please consider the number of empty RDATE properties in the output of the following ical4j 1.0.1 code:

System.out.println(TimeZoneRegistryFactory.getInstance().createRegistry().getTimeZone("Europe/Prague").getVTimeZone());

The underlying file /zoneinfo/Europe/Prague.ics seems to be OK.

I guess the problem arises from the implementation of
net.fortuna.ical4j.model.property.RDate.getValue():

if (getPeriods() != null) {
return Strings.valueOf(getPeriods());
}
return super.getValue();

For the given .ics file the getPeriods() returns a non-null result, but the expected result is stored in super.getValue()

This might be related:
http://sourceforge.net/projects/ical4j/forums/forum/368291/topic/4412524

Discussion

  • Ben Fortuna
    Ben Fortuna
    2011-12-02

    Hi Jochen,

    I have recently committed some fixes that I think will resolve this issue. Hopefully I can get a new release out with the changes soon.

    regards,
    ben

     
  • Ben Fortuna
    Ben Fortuna
    2011-12-02

    • milestone: 2069470 --> Maintenance Branch (1.x)
    • status: open --> pending-fixed