Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3610

Adding an l to make an int a long does not run when doing multiplication.

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 5.4.0.Final
    • drools-core
    • None
    • Hide

      long grace = 30l/days/ * 24 * 60 * 60 * 1000;

      Show
      long grace = 30l/ days / * 24 * 60 * 60 * 1000;

    Description

      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;

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            johnatcode42 John Lundberg (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty