Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
this function never send NullPointerE anymore
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 27 Feb 2010 23:06:45 +0000 (23:06 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Sat, 27 Feb 2010 23:06:45 +0000 (23:06 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7143 48e7efb5-ca39-0410-a469-dd3cf9ba447f

src/java/simgrid/msg/JniException.java
src/java/simgrid/msg/MsgNative.java

index af78f6f..b884da8 100644 (file)
@@ -13,7 +13,7 @@ package simgrid.msg;
 /**
  * This exception is raised when there is a problem within the bindings (in JNI). 
  */
 /**
  * This exception is raised when there is a problem within the bindings (in JNI). 
  */
-public class JniException extends MsgException {
+public class JniException extends RuntimeException {
        private static final long serialVersionUID = 1L;
 
 
        private static final long serialVersionUID = 1L;
 
 
index 0e070ed..6792584 100644 (file)
@@ -342,7 +342,6 @@ final class MsgNative {
         * @param task            The java task object to bind with the native task to create.
         *
         * @exception             JniException if something goes wrong with JNI
         * @param task            The java task object to bind with the native task to create.
         *
         * @exception             JniException if something goes wrong with JNI
-        *                        NullPointerException if the specified name is null.
         *                        IllegalArgumentException if compute duration <0 or message size <0
         *
         * @see                    Task.create()
         *                        IllegalArgumentException if compute duration <0 or message size <0
         *
         * @see                    Task.create()
@@ -350,7 +349,7 @@ final class MsgNative {
        final static native void taskCreate(Task task, String name,
                        double computeDuration,
                        double messageSize)
        final static native void taskCreate(Task task, String name,
                        double computeDuration,
                        double messageSize)
-       throws JniException, NullPointerException, IllegalArgumentException;
+       throws JniException, IllegalArgumentException;
 
        /**
         * The natively implemented method to get the sender of a task.
 
        /**
         * The natively implemented method to get the sender of a task.