[jboss-jira] [JBoss JIRA] (DROOLS-5025) Wrong BitMask created by a complex setter argument in modify block

Toshiya Kobayashi (Jira) issues at jboss.org
Wed Apr 15 00:33:52 EDT 2020


    [ https://issues.redhat.com/browse/DROOLS-5025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14035514#comment-14035514 ] 

Toshiya Kobayashi commented on DROOLS-5025:
-------------------------------------------

Fixed by https://github.com/kiegroup/drools/commit/fc924465437919d5b6bd99849ee595e6e7ebf957

> Wrong BitMask created by a complex setter argument in modify block
> ------------------------------------------------------------------
>
>                 Key: DROOLS-5025
>                 URL: https://issues.redhat.com/browse/DROOLS-5025
>             Project: Drools
>          Issue Type: Bug
>          Components: executable model
>    Affects Versions: 7.32.0.Final
>            Reporter: Toshiya Kobayashi
>            Assignee: Toshiya Kobayashi
>            Priority: Major
>              Labels: good-first-issue
>             Fix For: 7.37.0.Final
>
>
> With a complex setter argument in modify block like this:
> {noformat}
> import org.drools.modelcompiler.domain.Person;
> rule R 
> when
>     $p: Person(address.street == "street1")
> then
>     modify($p) { setLikes( String.valueOf(($p.getAddress().getStreet() + $p.getAddress().getCity()))) };
> end
> {noformat}
> executable model creates BitMask for "likes" and "address" thus causes a wrong property reactivity behavior.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list