commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject svn commit: r780534 - /commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/AdamsIntegrator.java
Date Mon, 01 Jun 2009 00:09:00 GMT
Author: billbarker
Date: Mon Jun  1 00:09:00 2009
New Revision: 780534

URL: http://svn.apache.org/viewvc?rev=780534&view=rev
Log:
change to Java 5 compatible

Modified:
    commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/AdamsIntegrator.java

Modified: commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/AdamsIntegrator.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/AdamsIntegrator.java?rev=780534&r1=780533&r2=780534&view=diff
==============================================================================
--- commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/AdamsIntegrator.java
(original)
+++ commons/proper/math/trunk/src/java/org/apache/commons/math/ode/nonstiff/AdamsIntegrator.java
Mon Jun  1 00:09:00 2009
@@ -633,9 +633,13 @@
             }
 
         } catch (NoSuchFieldException nsfe) {
-            throw new IOException(nsfe);
+            IOException ioe = new IOException();
+            ioe.initCause(nsfe);
+            throw ioe;
         } catch (IllegalAccessException iae) {
-            throw new IOException(iae);
+            IOException ioe = new IOException();
+            ioe.initCause(iae);
+            throw ioe;
         }
 
     }



Mime
View raw message