Quantlib, Java: shortcoming

Posted by Arif Shoshi on
URL: http://quantlib.414.s1.nabble.com/Quantlib-Java-shortcoming-tp8146.html

Dear quantlib-users,

has probably someone faced the following problem:

I have generated the Java interface (.dll and .jar files) of quantlib from QuantLib-SWIG-1.0 files. The Java interface is working fine, except one thing: when debugging the java code using the eclipse environment, the functionality of "Inspect" and "Watch" of Eclipse works only partially: I can "inspect" (watch) the variables of some quantlib types, like Date, but not those relates to a shared_ptr on the C++ side!

For example, suppose we have

Date dateX = ...
and
Ratehelper helper = ...  
or
Yiedtermstructure ytstr = ...

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@........" . It looks to me like the "shared_ptr" functionality of quantlib is not allowing the debugging. In the case of dateX there is no shared_ptr involved.


Does anyone have an idea of how to overcome this shortcoming? I would appreciate any help.

Best regards,
Arif



--
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01

------------------------------------------------------------------------------

_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users