math/apache-commons-math: unbreak armv6 and armv7
PR: 282301 Approved by: bofh@ / maintainer (as long as it doesn't break Tier 1)
This commit is contained in:
parent
c5d9b07770
commit
184a22447d
@ -16,9 +16,6 @@ WWW= https://commons.apache.org/proper/commons-math/
|
|||||||
|
|
||||||
LICENSE= APACHE20
|
LICENSE= APACHE20
|
||||||
|
|
||||||
BROKEN_armv6= fails to compile: build.xml: Compile failed; see the compiler error output for details
|
|
||||||
BROKEN_armv7= fails to compile: PowellOptimizer.java:301: error: Illegal static declaration in inner class PowellOptimizer.LineSearch
|
|
||||||
|
|
||||||
USE_ANT= yes
|
USE_ANT= yes
|
||||||
USE_JAVA= yes
|
USE_JAVA= yes
|
||||||
USE_LOCALE= en_US.ISO8859-1
|
USE_LOCALE= en_US.ISO8859-1
|
||||||
|
|||||||
@ -0,0 +1,22 @@
|
|||||||
|
BROKEN_armv7= fails to compile: PowellOptimizer.java:301: error: Illegal static declaration in inner class PowellOptimizer.LineSearch
|
||||||
|
|
||||||
|
--- src/main/java/org/apache/commons/math3/optimization/direct/PowellOptimizer.java.orig 2024-10-24 09:29:04 UTC
|
||||||
|
+++ src/main/java/org/apache/commons/math3/optimization/direct/PowellOptimizer.java
|
||||||
|
@@ -297,7 +297,7 @@ public class PowellOptimizer
|
||||||
|
* but will not pass the convergence check, so that the custom checker
|
||||||
|
* will always decide when to stop the line search.
|
||||||
|
*/
|
||||||
|
- private static final double ABS_TOL_UNUSED = Double.MIN_VALUE;
|
||||||
|
+// private static final double ABS_TOL_UNUSED = Double.MIN_VALUE;
|
||||||
|
/**
|
||||||
|
* Automatic bracketing.
|
||||||
|
*/
|
||||||
|
@@ -314,7 +314,7 @@ public class PowellOptimizer
|
||||||
|
LineSearch(double rel,
|
||||||
|
double abs) {
|
||||||
|
super(REL_TOL_UNUSED,
|
||||||
|
- ABS_TOL_UNUSED,
|
||||||
|
+ /* ABS_TOL_UNUSED */ Double.MIN_VALUE,
|
||||||
|
new SimpleUnivariateValueChecker(rel, abs));
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user