-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
2021 Week 25-27 (from Jun 21), 2021 Week 28-30 (from Jul 12)
-
3
-
Undefined
-
NEW
-
NEW
See SharingTest.testShouldAlphaShareBecauseSameConstantDespiteDifferentSyntax().
value == 1
and
value == TestStaticUtils.return1()
are shared when standard-drl. They have the same hashCode because it's calculated by fieldValue.
This is wrong because we cannot guarantee that TestStaticUtils.return1() always returns 1. So we should not share the node in the case.
Also the static method constraint should not be indexable (for both hash and range)
age < StaticUtil.getThirty()
- is related to
-
DROOLS-5729 Reorganize drools unit tests
- Coding In Progress
-
DROOLS-6485 Enhance node sharing and indexing for complex expression
- Open
- relates to
-
DROOLS-1404 Alpha node not shared with static function evaluation
- Closed
-
DROOLS-6417 Alpha node sharing with static method
- Closed