[jboss-jira] [JBoss JIRA] (JBRULES-3610) Adding an l to make an int a long does not run when doing multiplication.
Mario Fusco (JIRA)
jira-events at lists.jboss.org
Fri Sep 14 04:02:44 EDT 2012
[ https://issues.jboss.org/browse/JBRULES-3610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12718555#comment-12718555 ]
Mario Fusco commented on JBRULES-3610:
--------------------------------------
Can you give a bit more details about this issue? Where are you trying to use this statement? Can you send a complete DRL showing this bug?
> 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
More information about the jboss-jira
mailing list