Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Attempt to solve issues with our own finalize
[simgrid.git] / src / bindings / java / org / simgrid / msg / Comm.java
index 8d07c51..29c5587 100644 (file)
@@ -33,13 +33,8 @@ public class Comm {
 
        }
        /** Destroy the C communication object, when the GC reclaims the java part. */
-       @Override
-       protected void finalize() {
-               try {
-                       nativeFinalize();
-               } catch (Throwable e) {
-                       e.printStackTrace();
-               }
+       protected void finalize() throws Throwable{
+               nativeFinalize();
        }
        protected native void nativeFinalize();
        /**