Issue 7 in iliadproject: ILCalendarWidget broken in Pharo

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 7 in iliadproject: ILCalendarWidget broken in Pharo

iliadproject
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 7 by [hidden email]: ILCalendarWidget broken in Pharo
http://code.google.com/p/iliadproject/issues/detail?id=7

What steps will reproduce the problem?

1. Implement the example shown in Nico Petton's blog post:
http://smalltalk.gnu.org/blog/nico/control-flow-iliad

2. Launch the example by setting the browser to  
http://localhost:8888/sequence

3.  The calendar appears on the browser page.  Select a new month in the  
dropdown menu, then
hit the 'Select' button.

Under Gnu Smalltalk, the calendar should update to the new month selected.  
Under Pharos, the
web application just hangs.  Interrupting the web page, or trying to reload  
the same URL
produces the following output:

------------------------------------------
Internal Error
Error: subscript is out of bounds: 13
subscript is out of bounds: 13
Array(Object)>>errorSubscriptBounds:
Array(Object)>>at:
Month class>>daysInMonth:forYear:
DateAndTime
class>>year:month:day:hour:minute:second:nanoSecond:offset:
DateAndTime class>>year:month:day:hour:minute:second:offset:
DateAndTime class>>year:month:day:hour:minute:second:
DateAndTime class>>year:month:day:hour:minute:
DateAndTime class>>year:month:day:
Date class>>year:month:day:
Date class>>newDay:month:year:
[] in ILCalendar>>calendarTableContents
BlockClosure>>buildOn:
ILDivElement(ILElement)>>build:
[] in ILCalendar>>contents
BlockClosure>>buildOn:
------------------------------------------

This error occurs under Pharo1.0-10508-rc2dev10.01.2.image under Mac OS X  
10.5 with
Pharo Iliad 0.8 Beta, loaded by ConfigurationOfIliad-GermanArduino.5.mcz.



--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
Reply | Threaded
Open this post in threaded view
|

Re: Issue 7 in iliadproject: ILCalendarWidget broken in Pharo

iliadproject

Comment #1 on issue 7 by paolo.bonzini: ILCalendarWidget broken in Pharo
http://code.google.com/p/iliadproject/issues/detail?id=7

The reason is that in GNU Smalltalk an "invalid" month like 0 or 13 wraps  
around to
the previous or following year.  Likewise, an invalid day wraps around to  
the
previous or following month.

For example #daysInMonthIndex:forYear: could be implemented like this

     ^(Date newDay: 0 monthIndex: m + 1 year: y) dayOfMonth

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
Reply | Threaded
Open this post in threaded view
|

Re: Issue 7 in iliadproject: ILCalendarWidget broken in Pharo

iliadproject
Updates:
        Status: Fixed

Comment #2 on issue 7 by petton.nicolas: ILCalendarWidget broken in Pharo
http://code.google.com/p/iliadproject/issues/detail?id=7

Fixed in commit Iliad-More-UI0.8-np.13

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings


--
To unsubscribe, reply using "remove me" as the subject.