<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/objectlabkit/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/objectlabkit/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/objectlabkit/bugs/</id><updated>2012-01-24T12:45:36Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>common classes are duplicated in the common and joda jars</title><link href="https://sourceforge.net/p/objectlabkit/bugs/7/" rel="alternate"/><published>2012-01-24T12:45:36Z</published><updated>2012-01-24T12:45:36Z</updated><author><name>David Boden</name><uri>https://sourceforge.net/u/daveboden/</uri></author><id>https://sourceforge.nete89e028b10d19f5a148b6107ea6679deea2e13fc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The maven-enforcer-plugin's excellent duplicate class finder extension tells me that these classes are packaged in *both* the datecalc-common and the datecalc-joda jar files:&lt;/p&gt;
&lt;p&gt;Found in:&lt;br /&gt;
net.objectlab.kit:datecalc-joda:jar:1.2.0:compile&lt;br /&gt;
net.objectlab.kit:datecalc-common:jar:1.2.0:compile&lt;br /&gt;
Duplicate classes:&lt;br /&gt;
net/objectlab/kit/datecalc/common/AbstractIMMDateCalculator.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/HolidayCalendar.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/Utils.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/ExcelDateUtil.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/DefaultHolidayCalendar$DateComp.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/KitCalculatorsFactory.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/DefaultHolidayCalendar$1.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/StandardTenor.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/AbstractDateCalculator$1.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/AbstractKitCalculatorsFactory.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/HolidayHandler.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/PeriodCountBasis.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/Tenor.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/DefaultHolidayCalendar$CalendarComp.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/TenorCode.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/DefaultHolidayCalendar.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/IMMDateCalculator.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/PeriodCountCalculator.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/HolidayHandlerType.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/DateCalculator.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/ImmutableHolidayCalendar.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/WorkingWeek.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/AbstractDateCalculator.class&lt;br /&gt;
net/objectlab/kit/datecalc/common/IMMPeriod.class&lt;/p&gt;
&lt;p&gt;This appears to me to be unintentional, bearing in mind that the datecalc-joda pom declares a dependency on the datecalc-common artifact. Is the datecalc-joda packaging including the common class files in error?&lt;/p&gt;
&lt;p&gt;My current workaround is just to exclude the datecalc-common transitive dependency:&lt;br /&gt;
&amp;lt;exclusion&amp;gt;&lt;br /&gt;
&amp;lt;groupId&amp;gt;net.objectlab.kit&amp;lt;/groupId&amp;gt;&lt;br /&gt;
&amp;lt;artifactId&amp;gt;datecalc-common&amp;lt;/artifactId&amp;gt;&lt;br /&gt;
&amp;lt;/exclusion&amp;gt;&lt;/p&gt;
&lt;p&gt;This works because everything required is already present in datecalc-joda.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>WorkingWeek(byte xx) must be public</title><link href="https://sourceforge.net/p/objectlabkit/bugs/6/" rel="alternate"/><published>2011-12-07T13:14:29Z</published><updated>2011-12-07T13:14:29Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.neta698431bf8396d47ca15e0d9bd5e0f2b12ab1c12</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hi&lt;/p&gt;
&lt;p&gt;i tried to set the workingdays from monday to sunday. (7days) ==&amp;gt; i tried to set on the DateCalculator the attribute setWorkingWeek but i can not create a WorkingWeek as i wished to because the constructor is protected.&lt;br /&gt;
please provide also some most used cominations like you did with DEFAULT_WORKING_DAYS &lt;br /&gt;
eg for 7 days or sun-fr.&lt;/p&gt;
&lt;p&gt;i like you framework :-) &lt;/p&gt;
&lt;p&gt;cheers :-)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Spot date calculation is invalid</title><link href="https://sourceforge.net/p/objectlabkit/bugs/5/" rel="alternate"/><published>2010-10-11T07:59:21Z</published><updated>2010-10-11T07:59:21Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net1bd43986ff8a01d5428220be99ce5ed4b0e49fc0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Spot date is now calculated as "Today+2 business days". This can be found in AbstractDateCalculator.java :&lt;br /&gt;
if(tenorCode != TenorCode.OVERNIGHT &amp;amp;&amp;amp; tenorCode != TenorCode.TOM_NEXT &amp;amp;&amp;amp; spotLag != 0)&lt;br /&gt;
moveByBusinessDays(spotLag);&lt;/p&gt;
&lt;p&gt;But the correct algorythm should be "Today+2 days except weekend". And if the calculated date will be holiday then it should be moved to the next business day.&lt;br /&gt;
For example if today is Friday and there is a holiday on Monday, then current implementation says that spot date for today is Wednesday. But it should be Tuesday actually&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>DefaultHolidayCalendar&lt;E&gt; is broken for Date / Calendar JDK</title><link href="https://sourceforge.net/p/objectlabkit/bugs/4/" rel="alternate"/><published>2010-03-04T19:01:48Z</published><updated>2010-03-04T19:01:48Z</updated><author><name>Marcin Jekot</name><uri>https://sourceforge.net/u/marchy/</uri></author><id>https://sourceforge.net12b91bf64a12a8f0ea41ff13b6ee473327498b46</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;There is a problem if you use the DefaultHolidayCalendar&amp;lt;E&amp;gt; with Date or Calendar holidays, i.e. JDK implementation.&lt;/p&gt;
&lt;p&gt;The Date / Calendar objects are not "equal" on the same day if they have different time zones, and as a result isHoliday() method doesn't work correctly.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Negative moves do not work for FORWARD_UNLESS_MOVING_BACK…</title><link href="https://sourceforge.net/p/objectlabkit/bugs/3/" rel="alternate"/><published>2008-12-04T15:09:07Z</published><updated>2008-12-04T15:09:07Z</updated><author><name>Didier L.</name><uri>https://sourceforge.net/u/loiseadi/</uri></author><id>https://sourceforge.net4228618043dd9d14c5b7dadf6a0004340e579ae9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;… except for LocalDateForwardUnlessNegativeHandler.&lt;/p&gt;
&lt;p&gt;Indeed their getType() implementation returns FORWARD instead of FORWARD_UNLESS_MOVING_BACK, so AbstractDateCalculator.moveByBusinessDays(int) throws an IllegalArgumentException…&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MODIFIED_PRECEEDING HolidayHandlerType</title><link href="https://sourceforge.net/p/objectlabkit/bugs/2/" rel="alternate"/><published>2008-03-31T03:45:31Z</published><updated>2008-03-31T03:45:31Z</updated><author><name>Anthony Whitford</name><uri>https://sourceforge.net/u/awhitford/</uri></author><id>https://sourceforge.netf6a22b7d2dd7fb1ea460b19fd4c45064e707d921</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm thinking that the spelling of MODIFIED_PRECEEDING should be fixed. (Should be "_PRECEDING".)&lt;/p&gt;
&lt;p&gt;&lt;a href="http://objectlabkit.sourceforge.net/multiproject/datecalc-common/apidocs/net/objectlab/kit/datecalc/common/HolidayHandlerType.html#MODIFIED_PRECEEDING"&gt;http://objectlabkit.sourceforge.net/multiproject/datecalc-common/apidocs/net/objectlab/kit/datecalc/common/HolidayHandlerType.html#MODIFIED_PRECEEDING&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;(I don't know why I didn't notice this when I recorded bug 1601542, but in the end it was Eclipse that pointed out the misspelling.)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>MODIFIED_FOLLLOWING</title><link href="https://sourceforge.net/p/objectlabkit/bugs/1/" rel="alternate"/><published>2006-11-23T06:01:45Z</published><updated>2006-11-23T06:01:45Z</updated><author><name>Anthony Whitford</name><uri>https://sourceforge.net/u/awhitford/</uri></author><id>https://sourceforge.net70a709065e44cb249133fe174df6e0f3a596d57c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm thinking that the spelling of MODIFIED_FOLLLOWING should be fixed.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://objectlabkit.sourceforge.net/multiproject/datecalc-common/apidocs/net/objectlab/kit/datecalc/common/HolidayHandlerType.html#MODIFIED_FOLLLOWING"&gt;http://objectlabkit.sourceforge.net/multiproject/datecalc-common/apidocs/net/objectlab/kit/datecalc/common/HolidayHandlerType.html#MODIFIED_FOLLLOWING&lt;/a&gt; &lt;/p&gt;&lt;/div&gt;</summary></entry></feed>