robusta
robusta copied to clipboard
Error::description() deprecated, should use Display trait
Hi there! I just started using your library, and it worked perfectly well the first time I used it (2 days ago). The IDE was complaining about description()
being deprecated, but it was only a warning and everything was working perfectly.
However now I'm getting a RuntimeException
in Java whenever I try to call my JNI function, with the following message:
java.lang.RuntimeException: JNI call error!. Cause: description() is deprecated; use Display
This is quite confusing, because why on earth is this compile-time check inside the generated shared library file itself?! I couldn't really figure out what's causing this.
My only hypothesis for now is that the Error::description()
function is automatically populated with that message to get the attention of developers to use Display
instead, which makes it useless to understand what's going on under-the-hood.