Details
-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
7.71.0.Final
-
None
-
2022 Week 26-28 (from Jun 27), 2022 Week 29-31 (from Jul 18)
-
Workaround Exists
-
-
NEW
-
NEW
-
---
-
---
Description
Rule like this causes an infinite loop. See a line break and the following line "$fact.getBigDecimal1().subtract($fact.getBigDecimal2());"
when $fact : MathFact( bigDecimal1 != null, bigDecimal2 != null ); then // Notice the calculation is split over lines and this time starts on the line after assignment. BigDecimal result = $fact.getBigDecimal1().subtract($fact.getBigDecimal2()); System.out.println("\nMathFact.result: " + result); modify($fact) { setBigDecimalResult(result); }; end