[jboss-jira] [JBoss JIRA] (DROOLS-3679) MVELConcequenceBuilder treats '#' within String incorrectly as a comment at 2nd appearance
Hiroko Miura (Jira)
issues at jboss.org
Thu Feb 21 02:15:00 EST 2019
Hiroko Miura created DROOLS-3679:
------------------------------------
Summary: MVELConcequenceBuilder treats '#' within String incorrectly as a comment at 2nd appearance
Key: DROOLS-3679
URL: https://issues.jboss.org/browse/DROOLS-3679
Project: Drools
Issue Type: Bug
Components: core engine
Affects Versions: 7.14.0.Final
Environment: RHDM 7.2.0
dialect mvel
Reporter: Hiroko Miura
Assignee: Mario Fusco
The rule below expects that "B#" is set to value of the fact. However, "B;#"(i.e. ';' added before '#") is set incorrectly
{noformat}
dialect "mvel"
rule "testRule"
when
$fact : Fact();
then
$fact.name = "A#";"B#"
$fact.value = "B#";
System.out.println( $fact );
end
{noformat}
Here is output.
{noformat}
Fact [name=A#, value=B;#]
{noformat}
'#' within the value at 2nd appearance is treated as a start of comment.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list