Translate InterpolatedDiscountCurve to match QL097

Bug #1209983 reported by Zahid Hussain
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
JQuantLib
In Progress
Critical
Richard Gomes

Bug Description

InterpolatedDiscountCurve's translation does not match QL097; date[] and double[] are being used inp lace of stl:vector. Also these values are not initialized causing NullPointer from:
   public Date maxDate() {
        return dates[dates.length - 1];
    }

Current Code:
   private Date[] dates;
    private /*@Time*/ double[] times;
    private double[] data;

// C++ QL097 code
    protected mutable std::vector<Date> dates_;
    protected mutable std::vector<Time> times_;
    protected mutable std::vector<DiscountFactor> data_;

=============
Relationships
=============
has duplicate http://bugs.launchpad.net/bugs/jquantlib-513

Tags: translation
Revision history for this message
Q Boiler (q.boiler) wrote :

Please update this issue with a quick status.
I also changed the Target Release to 0.2.5

Revision history for this message
Richard Gomes (frgomes) wrote :

Zahid,

Please assign this ticket to me.
InterpolatedDiscountCurve must be adjusted as part of PiecewiseYieldCurve.

Thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.