Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Cannot let GC destroy VM itself ...
[simgrid.git] / src / bindings / java / org / simgrid / msg / VM.java
index cd2c7e8..9f78fa4 100644 (file)
@@ -62,11 +62,11 @@ public class VM extends Host{
                }
                return null; 
        }
-       @Override
-       public void finalize() {
+       
+       public void destroy() {
                try {
                        nativeFinalize();
-               } catch (Throwable e) {
+               } catch (Exception e) {
                        e.printStackTrace();
                }
        }