Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
more consistant identifier names around Java objects' finalization
[simgrid.git] / src / bindings / java / org / simgrid / msg / Task.java
index 16e54ef..0ee65c4 100644 (file)
@@ -167,13 +167,13 @@ public class Task {
                try {
                        // Exceptions in finalizers lead to bad situations:
                        // http://stackoverflow.com/questions/7644556/troubleshooting-a-java-memory-leak-finalization
-                       doFinalize();
+                       nativeFinalize();
                        bind=0; // to avoid segfaults if the impossible happens yet again making this task surviving its finalize()
-               } catch (Exception e) {
+               } catch (Throwable e) {
                        e.printStackTrace();
                }
        }
-       protected native void doFinalize();
+       protected native void nativeFinalize();
        /* *                       * *
         * * Communication-related * *
         * *                       * */