[jboss-jira] [JBoss JIRA] (DROOLS-3678) MVELConcequenceBuilder treats '#' within String incorrectly as a comment at 2nd appearance

Hiroko Miura (Jira) issues at jboss.org
Thu Feb 21 02:01:00 EST 2019


Hiroko Miura created DROOLS-3678:
------------------------------------

             Summary: MVELConcequenceBuilder treats '#' within String incorrectly as a comment  at 2nd appearance
                 Key: DROOLS-3678
                 URL: https://issues.jboss.org/browse/DROOLS-3678
             Project: Drools
          Issue Type: Bug
          Components: build
    Affects Versions: 7.14.0.Final
         Environment: RHDM 7.2.0
dialect mvel
            Reporter: Hiroko Miura
            Assignee: Ant Stephenson


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