rosslichengke-jpg opened a new issue, #7286: URL: https://github.com/apache/incubator-kie/issues/7286
### Describe the bug I have built a drools rule: [OOTB-TC-R21](https://github.com/user-attachments/files/34732945/OOTB-TC-R21.md) Then I use a request to test the rule. The request matches the rule but the rule still will not be matched. Our analysis is: BuildtimeSegmentUtilities.java:167 declares int ruleSegmentPosMask = 1 (32-bit), while getPathAllLinkedMaskTest operates on long (64-bit). After 32 left-shifts, a Java int overflows to 0, so every segment at index ≥ 32 receives segmentPosMaskBit = 0 — its linked state can never be recorded in the path memory, causing the rule's isRuleLinked() check to return false permanently and the rule to be silently skipped without any error. ### Expected behavior _No response_ ### Actual behavior _No response_ ### How to Reproduce? _No response_ ### Output of `uname -a` or `ver` _No response_ ### Output of `java -version` _No response_ ### GraalVM version (if different from Java) _No response_ ### Kogito version or git rev (or at least Quarkus version if you are using Kogito via Quarkus platform BOM) _No response_ ### Build tool (ie. output of `mvnw --version` or `gradlew --version`) _No response_ ### Additional information _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
