Skip Menu |

This queue is for tickets about the Net-ICal CPAN distribution.

Report information
The Basics
Id: 2132
Status: new
Priority: 0/
Queue: Net-ICal

People
Owner: Nobody in particular
Requestors: chris [...] clotho.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Missing _create method in Net::ICal::Duration
With this .ics file: BEGIN:VCALENDAR CALSCALE:GREGORIAN PRODID:-//Apple Computer\, Inc//iCal 1.0//EN VERSION:2.0 BEGIN:VEVENT DTSTAMP:20030128T172023Z SUMMARY:test UID:948EFBA6-1E79-11D7-9155-000393D6093E-RID DTSTART;TZID=America/Chicago:20030106T190000 DURATION:PT4H END:VEVENT END:VCALENDAR and running the following command: perl -MNet::ICal -e'undef$/;Net::ICal::Calendar->new_from_ical(<>)' test.ics I get the warning: MethodMapper: Can't invoke _create on Net::ICal::Duration at /perl/lib/site_perl/5.8.0/Net/ICal/Property.pm line 135 due to the missing _create() method in Net::ICal::Duration, which leads to the following fatal error a few lines later, since $self is undef: Can't call method "restore" on an undefined value at /perl/lib/site_perl/5.8.0/Net/ICal/Property.pm line 178, <> chunk 1.
From: chris [...] clotho.com
Attached is a patch that resolves this bug. It's quite trivial, since it just moves some code out of new() and into _create()
Download diff1
application/octet-stream 2k

Message body not shown because it is not plain text.