Mantis Bug Tracker

View Issue DetailsJump to Notes ] Wiki ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000476jquantlib[All Projects] code reviewpublic2010-07-31 06:332010-07-31 06:33
Reporterggd543 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000476: Would you make the javadoc more clear
DescriptionI found the javadoc description is confused sometimes.
Let's see the javadoc for the method advance(Date, int, TimeUnit) of Calendar class.

The doc says that advances the given date of the given number of business days and returns the result.

But if the given date is not a business date and the given number is zero, the method will adjust the given day to the appropriate near business day with respect to BusinessConvention.Proceeding convention, just like the behavior of adjust method .

But why not return the given date directly if the given number is zero ?





TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2010-07-31 06:33 ggd543 New Issue


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker