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

Mario Fusco (Jira) issues at jboss.org
Fri Feb 22 08:33:00 EST 2019


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

Mario Fusco updated DROOLS-3678:
--------------------------------
    Sprint: 2019 Week 08-10


> 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: Mario Fusco
>            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#";
>         $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