[
https://issues.jboss.org/browse/JBRULES-2857?page=com.atlassian.jira.plug...
]
Michael Whidden updated JBRULES-2857:
-------------------------------------
Description:
If a token appears in the LHS of a [when] with no other characters between the ] and the
{, the token expands with leading whitespaces in the RHS. For example:
[when]{name} is my name=n:Name(name=="{name}")
When name "Mark" is entered, it expands to:
n:Name(name==" Mark")
Introducing a whitespace or other text between [when] and {name} eliminates the leading
whitespace from the RHS.
was:
If a token appears in the LHS of a [when] with no other characters between the ] and the
{, the token expands with leading whitespaces in the RHS. For example:
[when]{name} is my name=n:Name(name=="{name}")
When name "Mark" is entered, it expands to:
n:Name(name==" Mark")
Introducing a whitespace or other text between [when] and {name} eliminates the leading
whitespace from the RHS.
Steps to Reproduce:
Create a DSL with
[when]{name} is my name=n:Name(name=="{name}")
Observe whitespace in expansion of token name.
was:
Create a DSL with
[when]{name} is my name=n:Name(name=="{name}")
Observe whitespace in expansion of token <code>name</code>
DSL tokens abutting brackets expand with leading whitespaces
------------------------------------------------------------
Key: JBRULES-2857
URL:
https://issues.jboss.org/browse/JBRULES-2857
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: drools-compiler-DSL, drools-guvnor
Affects Versions: 5.1.1.FINAL
Environment: Windows XP, JBoss 4.2.3 GA, Drools 5.1.1 Guvnor
Reporter: Michael Whidden
Assignee: Mark Proctor
If a token appears in the LHS of a [when] with no other characters between the ] and the
{, the token expands with leading whitespaces in the RHS. For example:
[when]{name} is my name=n:Name(name=="{name}")
When name "Mark" is entered, it expands to:
n:Name(name==" Mark")
Introducing a whitespace or other text between [when] and {name} eliminates the leading
whitespace from the RHS.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira