Uploaded image for project: 'JBoss BRMS Platform'
  1. JBoss BRMS Platform
  2. RHBRMS-1048

"mvel" dialect does not understand hex and oct literals in RHS

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

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Do
    • Minor
    • None
    • 6.0.2
    • BRE
    • None

    Description

      Description of problem:
      When using hexadecimal or octal literals in consequence, together with "mvel" dialect, the literals are not recognized. See following simple rule that demonstrates the problem:

      rule "rulename"
      dialect "mvel"
      when
      then
      int hex = 0x123456
      int oct = 0123456;
      end

      When trying to compile the above rule, the compiler returns:
      Unable to Analyse Expression int hex = 0x123456;
      int oct = 0123456;:
      [Error: badly formatted number: For input string: "int hex = 0x123456;
      int oct = 0123456;"]
      [Near :

      {... int hex = 0x123456; ....}

      ]
      ^
      [Line: 2, Column: 0] : [Rule name='rulename']

      Please note that with "java" dialect the rule is compiled successfully.

      Version-Release number of selected component (if applicable):
      Community 6.0.3-SNAPSHOT

      Additional info:
      According to http://docs.codehaus.org/display/MVEL/MVEL+2.0+Literals, mvel should support hex and oct literals.

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            psiroky_jira Petr Široký (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson
            Lukáš Petrovický Lukáš Petrovický (Inactive)
            Lukáš Petrovický Lukáš Petrovický (Inactive)
            Kris Verlaenen, Lukáš Petrovický (Inactive)

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty