[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:03:00 EST 2019


     [ https://issues.jboss.org/browse/DROOLS-3678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hiroko Miura updated DROOLS-3678:
---------------------------------
    Component/s: core engine
                     (was: build)


> 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: core engine
>    Affects Versions: 7.14.0.Final
>         Environment: RHDM 7.2.0
> dialect mvel
>            Reporter: Hiroko Miura
>            Assignee: Ant Stephenson
>            Priority: Major
>
> 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