[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
Mon Sep 17 08:50:34 EDT 2012


     [ https://issues.jboss.org/browse/JBRULES-3610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Fusco reassigned JBRULES-3610:
------------------------------------

    Assignee: Mario Fusco  (was: Mark Proctor)

    
> 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: Mario Fusco
>
> 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