]
Michael Anstis updated JBRULES-2819:
------------------------------------
Fix Version/s: 5.5.0.CR1
(was: 5.5.0.Beta1)
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.5.0.CR1
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
For more information on JIRA, see: