Re: calendar problem when calling quantlib lib from java

Posted by moloko on
URL: http://quantlib.414.s1.nabble.com/calendar-problem-when-calling-quantlib-lib-from-java-tp5595p5602.html

All,

I've isolated my code from my system and I can send sources files to generate the crash.
If anybody could have a look at it, I will deeply appreciate

If it's working on your machine, it will definitely say that I've got a problem on my server.
If it's not working it will say that I'm not building the library the right way.

to remember the problem :
I'm building a shared lib which is a mix of JNI / QuantLib
I call this lib in a java process
I've got a crash when I call
Calendar calendar = TARGET();
but not
Calendar calendar = NullCalendar();
or
DayCounter dayCounter = Thirty360(Thirty360::European);
but not
DayCounter dayCounter = Actual360();


Regards,

Pierre

test_quantlib
test_quantlib_make_so
TestQuantlib.class
TestQuantlib.cpp
TestQuantlib.h
TestQuantlib.java

file list description
TestQuantlib.cppTestQuantlib.java  -- java source code to load "libTestQuantLib.so" into JVM, and contains JNI native method.
TestQuantlib.class -- the class file compiled from TestQuantlib.java
TestQuantlib.cpp -- testing jni cpp file which implement the native method defined in TestQuantlib.java
TestQuantlib.h -- header file generated for the native java method.
test_quantlib_make_so -- script to build "libTestQuantLib.so"
test_quantlib -- script to launch JVM
testjin.log -- log file generated for the testing from TestQuantlib.cpp.