[jboss-jira] [JBoss JIRA] Updated: (JBRULES-2819) DSL parsing/expansion: '\', '$', empty value, empty condition

Mark Proctor (JIRA) jira-events at lists.jboss.org
Tue May 17 17:38:01 EDT 2011


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

Mark Proctor updated JBRULES-2819:
----------------------------------

         Assignee: Edson Tirelli  (was: Mark Proctor)
    Fix Version/s: 5.3.0.M1
                       (was: 5.2.0.CR1)


> DSL parsing/expansion: '\', '$', empty value, empty condition  
> ---------------------------------------------------------------
>
>                 Key: JBRULES-2819
>                 URL: https://issues.jboss.org/browse/JBRULES-2819
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler-DSL
>    Affects Versions: 5.1.1.FINAL
>            Reporter: Wolfgang Laun
>            Assignee: Edson Tirelli
>             Fix For: 5.3.0.M1
>
>
> 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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list