Using Java directors generates code with some dynamic_casts. I see that in Python, you can pass in -DSWIG_DIRECTOR_NORTTI. Is there an equivalent for Java?

If not, is there a reason why the solution that is used for Python would not work for Java? I see the code in swig/Lib/python/director.swig that enables non-rtti C++ code. I would be willing to get this solution to work for Java if there is no technical reason why it wouldn't work.

Thanks for your reply,
-Alex Weisberger