Details
-
Enhancement
-
Resolution: Won't Do
-
Minor
-
None
-
6.0.2
-
None
Description
Description of problem:
When using hexadecimal or octal literals in consequence, together with "mvel" dialect, the literals are not recognized. See following simple rule that demonstrates the problem:
rule "rulename"
dialect "mvel"
when
then
int hex = 0x123456
int oct = 0123456;
end
When trying to compile the above rule, the compiler returns:
Unable to Analyse Expression int hex = 0x123456;
int oct = 0123456;:
[Error: badly formatted number: For input string: "int hex = 0x123456;
int oct = 0123456;"]
[Near :
]
^
[Line: 2, Column: 0] : [Rule name='rulename']
Please note that with "java" dialect the rule is compiled successfully.
Version-Release number of selected component (if applicable):
Community 6.0.3-SNAPSHOT
Additional info:
According to http://docs.codehaus.org/display/MVEL/MVEL+2.0+Literals, mvel should support hex and oct literals.