X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/96cedde3cdbc0b8ffc3f096a1b65d021b0226f99..c0164fce5ac7eb8737258e5bde6d34c956283282:/src/bindings/java/org/simgrid/msg/VM.java diff --git a/src/bindings/java/org/simgrid/msg/VM.java b/src/bindings/java/org/simgrid/msg/VM.java index b8de0b3d5a..bca633f62f 100644 --- a/src/bindings/java/org/simgrid/msg/VM.java +++ b/src/bindings/java/org/simgrid/msg/VM.java @@ -14,7 +14,7 @@ public class VM extends Host { private int coreAmount = 1; /** - * Create a `basic' VM : 1 core and 1GB of RAM. + * Create a `basic` VM : 1 core and 1GB of RAM. * @param host Host node * @param name name of the machine */ @@ -68,6 +68,7 @@ public class VM extends Host { public static native VM getVMByName(String name); /* Make sure that the GC also destroys the C object */ + @Deprecated @Override protected void finalize() throws Throwable { nativeFinalize(); } @@ -125,7 +126,7 @@ public class VM extends Host { this.nativeMigration(destination); } catch (Exception e){ Msg.info("Migration of VM "+this.getName()+" to "+destination.getName()+" is impossible ("+e.getMessage()+")"); - throw new HostFailureException(); + throw new HostFailureException(e.getMessage()); } // If the migration correcly returned, then we should change the currentHost value. this.currentHost = destination;