When I create a native implementation peer in c++ how can I ensure that native part is also deleted when java object is deleted by JVM? I can add some methods that user of j
This is a rare case where you should really use a finalizer, but you should also make your Java class Closeable as well.