Re: Quantlib, Java: shortcoming

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Quantlib-Java-shortcoming-tp8146p8147.html

On Mon, 2010-05-10 at 22:50 +0200, Arif Shoshi wrote:
> When I use "inspect" (or watch) in eclipse in the debugging mode to
> investigate "dateX", I would see the date, like "22 Apr. 2010",
> contained in dateX which is what I want. However, "inspect" (or watch)
> in the case of "helper" (ytstr) would not show the content of
> "helper" (ytstr). What I get is: "quantlib@........" .

Arif,
        I guess that it works with Date only because it provides a toString()
method that Eclipse can call.  The Date class is just as opaque as
RateHelper; it just contains a textual representation of a pointer to
the wrapped object (which is what you're seeing.) Sorry, but I'm afraid
it's a limitation of the SWIG-generated wrappers.

Luigi


--

When all else fails, pour a pint of Guinness in the gas tank,
advance the spark 20 degrees, cry "God Save the Queen!", and pull
the starter knob.
-- MG "Series MGA" Workshop Manual



------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users