[
https://issues.jboss.org/browse/JBRULES-3610?page=com.atlassian.jira.plug...
]
Mario Fusco commented on JBRULES-3610:
--------------------------------------
I just checked this issue with the following rule but I haven't been able to reproduce
the problem:
rule R1 when
$p : Person( name == \"Mark\" )
then
$p.setAgeInMillis( 37L * 365 * 24 * 60 * 60 * 1000 );
end
Note that I am using an upper case L just because I think that the lower case one can be
easily confused with a 1 like in: 37l and 371
Anyway I tried the same also with the lower case l and with both java and mvel dialect and
I couldn't find any problem.
Please attach a complete failing test case if possible. I am going to flag this as not
reproduceable in the meanwhile.
Adding an l to make an int a long does not run when doing
multiplication.
-------------------------------------------------------------------------
Key: JBRULES-3610
URL:
https://issues.jboss.org/browse/JBRULES-3610
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-core
Affects Versions: 5.4.0.Final
Environment: MacBook Air OSX 10.7.4 in Java 1.6
Reporter: John Lundberg
Assignee: Mark Proctor
I am trying to do some multiplication in a drool.
long grace = 30l/*days*/ * 24 * 60 * 60 * 1000;
But, when it runs I get the error: 'Operator ";" expected' I can
however do.
long grace1 = 30;
long grace2 = 24;
long grace3 = 60;
long grace4 = 1000;
long grace = grace1 * grace2 * grace3 * grace3 * grace4;
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira