-
Bug
-
Resolution: Done
-
Major
-
None
-
7.32.0.Final
-
2020 Week 04-06 (from Jan 20)
-
-
NEW
-
NEW
Casting int interim variable to short causes compilation error in the executable model. In non-executable model its working fine.
This rule works:
rule "rule1" when $address : Address( shortNumber == null || shortNumber == 0) then $address.setShortNumber((short)$address.getNumber()); update($address); end
but when using an interim variable, the rule fails to compile due to incompatible types: java.lang.Integer cannot be converted to short:
rule "rule1" when $address : Address( shortNumber == null || shortNumber == 0, $interimVar : number) then $address.setShortNumber((short)$interimVar); update($address); end
- clones
-
RHPAM-2667 Casting int interim varible to short causes compilation error in executable model
- Closed