|
|
|
[
Permlink
| « Hide
]
Henri Yandell - [13/Apr/07 11:11 AM ]
Seems like a simple fix; < 0 to == 0. I'll work on a unit test (unless Nick does one first :) ).
Test/Fix attached. The comment that this is not critical as an exception is thrown anyway is only true when its a single month. If the illegal month name is the latter part of a range (Jan-Foo) then no Exception was being thrown.
To the branch:
svn ci -m "Fixing ight Exception will be thrown for a month of FOO, and an Exception will now be thrown for a range with an illegal end month, ie) JAN-FOO" src/ Sending src/java/org/quartz/CronExpression.java Sending src/test/java/org/quartz/CronExpressionTest.java Transmitting file data .. Committed revision 695. And to trunk: svn ci -m "Fixing ight Exception will be thrown for a month of FOO, and an Exception will now be thrown for a range with an illegal end month, ie) JAN-FOO" src/ Sending src/java/org/quartz/CronExpression.java Sending src/test/java/org/quartz/CronExpressionTest.java Transmitting file data .. Committed revision 696. | ||||||||||||||||||||||||||||||||||||||||||||||