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

DSL parsing/expansion: '\', '$', empty value, empty condition

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 6.0.0.Alpha1
    • 5.1.1.FINAL
    • drools-compiler-DSL
    • None

    Description

      DSL parser does not accept an empty "value" section, e.g.
      [when] a man loves a woman=

      Expansion of a rule with an empty condition results in "whenthen".

      The DSL parser escapes '$', but not '\' in value sections. It should not modify the value section except for "normalizing" variable references. Variable references should be restricted to a "clean" character sequence (e.g. Java identifier). The current expansion using replaceAll is too fragile.

      I have emailed three reworked source files AntlrDSLMappingEntry.java DefaultExpander.java DSLTokenizedMappingFile.java to Edson, but I didn't change the parser itself.

      Attachments

        Activity

          People

            etirelli@redhat.com Edson Tirelli
            laune Wolfgang Laun (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Archived:

              PagerDuty