[jboss-jira] [JBoss JIRA] (JBRULES-2819) DSL parsing/expansion: '\', '$', empty value, empty condition
Geoffrey De Smet (JIRA)
jira-events at lists.jboss.org
Wed Feb 1 05:26:24 EST 2012
[ https://issues.jboss.org/browse/JBRULES-2819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Geoffrey De Smet updated JBRULES-2819:
--------------------------------------
Fix Version/s: 5.4.0.Beta3
(was: 5.4.0.Beta2)
> 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.4.0.Beta3
>
>
> 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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list