[jboss-jira] [JBoss JIRA] (JBRULES-3610) Adding an l to make an int a long does not run when doing multiplication.
John Lundberg (JIRA)
jira-events at lists.jboss.org
Tue Aug 21 10:37:14 EDT 2012
John Lundberg created JBRULES-3610:
--------------------------------------
Summary: 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: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list