Author: luc Date: Tue Mar 26 15:11:18 2013 New Revision: 1461172 URL: http://svn.apache.org/r1461172 Log: Fixed loading of test file when path contains a space.
JIRA:MATH-955 Modified: commons/proper/math/trunk/src/changes/changes.xml commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/EmpiricalDistributionTest.java Modified: commons/proper/math/trunk/src/changes/changes.xml URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/changes/changes.xml?rev=1461172&r1=1461171&r2=1461172&view=diff ============================================================================== --- commons/proper/math/trunk/src/changes/changes.xml (original) +++ commons/proper/math/trunk/src/changes/changes.xml Tue Mar 26 15:11:18 2013 @@ -55,6 +55,9 @@ This is a minor release: It combines bug Changes to existing features were made in a backwards-compatible way such as to allow drop-in replacement of the v3.1[.1] JAR file. "> + <action dev="luc" type="update" issue="MATH-955" due-to="Evan Ward"> + Fixed loading of test file when path contains a space. + </action> <action dev="luc" type="update" issue="MATH-954" due-to="Charles Cooper"> Improved speed of FastMath.abs methods for all signatures, by removing branching. </action> Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/EmpiricalDistributionTest.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/EmpiricalDistributionTest.java?rev=1461172&r1=1461171&r2=1461172&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/EmpiricalDistributionTest.java (original) +++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/random/EmpiricalDistributionTest.java Tue Mar 26 15:11:18 2013 @@ -98,7 +98,7 @@ public final class EmpiricalDistribution checkDistribution(); // Load again from a file (also verifies idempotency of load) - File file = new File(url.getFile()); + File file = new File(url.toURI()); empiricalDistribution.load(file); checkDistribution(); }