A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
more consistant identifier names around Java objects' finalization
[simgrid.git]
/
src
/
bindings
/
java
/
org
/
simgrid
/
msg
/
RngStream.java
diff --git
a/src/bindings/java/org/simgrid/msg/RngStream.java
b/src/bindings/java/org/simgrid/msg/RngStream.java
index
c7d3a5d
..
49e7ac3
100644
(file)
--- a/
src/bindings/java/org/simgrid/msg/RngStream.java
+++ b/
src/bindings/java/org/simgrid/msg/RngStream.java
@@
-41,16
+41,18
@@
public class RngStream {
* The natively implemented method to create a C RngStream object.
*/
private native void create(String name);
* The natively implemented method to create a C RngStream object.
*/
private native void create(String name);
- /**
- * Destructor
- */
+ @Override
protected void finalize() {
protected void finalize() {
- destroy();
+ try {
+ nativeFinalize();
+ } catch (Throwable e) {
+ e.printStackTrace();
+ }
}
/**
* Release the C RngStream object
*/
}
/**
* Release the C RngStream object
*/
- private native void
destroy
();
+ private native void
nativeFinalize
();
/**
* Sets the initial seed of the package RngStreams to the six integers in the vector seed. This will
/**
* Sets the initial seed of the package RngStreams to the six integers in the vector seed. This will