From: SourceForge.net <no...@so...> - 2007-01-10 18:42:36
|
Bugs item #1632625, was opened at 2007-01-10 18:38 Message generated for change (Comment added) made by pzack You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1632625&group_id=1645 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: java Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: pzack (pzack) Assigned to: William Fulton (wsfulton) Summary: Callback example doesn't compile Initial Comment: Go to the download examples/java/callback running swig 1.3.31 swig -c++ -java example.i The resulting C++ files do not compile under microsoft visual studios 6.0. ------ NOTE: The code generated by swig 1.3.28 compiles. ---------------------------------------------------------------------- >Comment By: pzack (pzack) Date: 2007-01-10 18:42 Message: Logged In: YES user_id=1688637 Originator: YES Also, if I run 1.3.28 code with Java 5.0, or if I fix the 1.3.31 code by changing This Code: class Director { JavaVM *swig_jvm_; To this Code: class Director { public: JavaVM *swig_jvm_; and run under Java 5.0 I get a runtime JNI error. I can get correct behavior if I change the two dynamic_casts to static_casts in the generated wrapper. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=101645&aid=1632625&group_id=1645 |