| Summary: | "<=" and ">=" operators in a rule pattern cause test scenarios to fail on facts of type BigInteger | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise BRMS Platform 5 | Reporter: | Tihomir Surdilovic <tsurdilo> |
| Component: | unspecified | Assignee: | Tihomir Surdilovic <tsurdilo> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | |
| Severity: | unspecified | Docs Contact: | |
| Priority: | high | ||
| Version: | 5.0.1 | CC: | maarten.daalder |
| Target Milestone: | --- | ||
| Target Release: | 5.1.0 GA | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| URL: | http://jira.jboss.org/jira/browse/BRMS-346 | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-07-15 17:36:06 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Tihomir Surdilovic
2010-07-14 16:45:35 UTC
Link: Added: This issue depends GUVNOR-569 It's not the fact types that are the problem here, the problem is that org.drools.base.evaluators.ComparableEvaluatorsDefinition$BigIntegerLessOrEqualEvaluator has a private constructor. So far we've only experienced this problem with org.drools.base.evaluators.ComparableEvaluatorsDefinition$BigIntegerLessOrEqualEvaluator and not org.drools.base.evaluators.ComparableEvaluatorsDefinition$BigIntegerGreaterOrEqualEvaluator Yes, the evaluator constructors:
public BigIntegerLessEvaluator() {...}
private BigIntegerLessOrEqualEvaluator() { ... }
public BigIntegerGreaterEvaluator() {...}
public BigIntegerGreaterOrEqualEvaluator() {...}
so the quick fix would be to change the BigIntegerLessOrEqualEvaluator() to public.
The correct fix would be to implement externalizable on the classes which deserializes the evaluators so that we can always use the same instance.
I will open a separate JIRA for that task.
Changed the BigIntegerLessOrEqualEvaluator constructor to public from private. Writer: Added: Darrin Release Notes Docs Status: Added: Not Yet Documented Release Notes Text: Added: test Release Notes Text: Removed: test Labels: Removed: rn-dmison rn-open Added: rn-dlesage rn-done-resolved Release Notes Docs Status: Removed: Not Yet Documented Added: Documented as Resolved Issue Writer: Removed: Darrin Added: dlesage Release Notes Text: Added: https://jira.jboss.org/browse/GUVNOR-569 Users could not utilise the "<=" operator in rule patterns as this would cause an exception. This was because the BigIntegerLessOrEqualEvaluator constructor was set to private. It has now been made public, meaning users can utilise that operator. |