Rikkola opened a new issue, #7321: URL: https://github.com/apache/incubator-kie/issues/7321
### Describe the bug Problem When rules contain constraints comparing against char literals with code points ≥ 128 ≥128 (for example, non-ASCII characters such as `'ä'` or '`€'`), JIT-compiled constraint evaluation fails to match. Root Cause In `ClassGenerator.push(Object, Class)`, `char.class` constants were emitted unconditionally using the bytecode instruction `BIPUSH`: ``` mv.visitIntInsn(BIPUSH, ((Character) obj).charValue()); ``` Because `BIPUSH` accepts only an 8-bit signed byte (−128 to 127), ASM silently truncates 16-bit unsigned `char` values ≥128, resulting in corrupt/sign-extended values being pushed onto the operand stack during constraint execution. ### 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]
