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

MVEL comment token /* // in java string literal in consequence causes parse error.

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • 5.4.0.CR1
    • 5.3.0.CR1, 5.4.0.Beta2
    • drools-compiler
    • None
    • Hide

      Don't use comments in strings.

      Show
      Don't use comments in strings.

      Having a /* // comment using the mvel dialect in java string literal in the consequence causes
      [Error: Malformed expression] to be thrown.

      Looking at the lexar, all comments inside of a string cause a parse error.
      Similar to JBRULES-2518 but that is fixed in the current version.
      I wrote a test case for JBRULES-2518 merge request submitted.

              mfusco@redhat.com Mario Fusco
              benbennett_jira Benjamin Bennett (Inactive)
              Archiver:
              rhn-support-ceverson Clark Everson

                Created:
                Updated:
                Resolved:
                Archived: