[jboss-jira] [JBoss JIRA] (DROOLS-2594) drools compiler doesn't accept is as getter for boolean attribute of POJO

Mario Fusco (JIRA) issues at jboss.org
Tue Jun 5 04:16:01 EDT 2018


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

Mario Fusco resolved DROOLS-2594.
---------------------------------
    Resolution: Cannot Reproduce


> drools compiler doesn't accept is as getter for boolean attribute of POJO
> -------------------------------------------------------------------------
>
>                 Key: DROOLS-2594
>                 URL: https://issues.jboss.org/browse/DROOLS-2594
>             Project: Drools
>          Issue Type: Bug
>         Environment: CentOS 7, maven build
>            Reporter: Gal Nitzan
>            Assignee: Mario Fusco
>            Priority: Critical
>              Labels: drools, drools-compiler
>
> Hi, based on [7.7.0 documentation|https://docs.jboss.org/drools/release/7.7.0.Final/drools-docs/html_single/index.html#_constraint_part_of_a_pattern] a POJO boolean getter can be isMyAttribute or getMyAttribute.
> We get the following exception when using is as prefix for boolean getter as follows:
> 2018-05-28 22:17:41 [main] ERROR o.d.c.kie.builder.impl.KieProject - Unable to build KieBaseModel:myKbase
> Unable to Analyse Expression current == true:
> [Error: unable to resolve method using strict-mode: com.acme.pojos.current()]
> [Near : {... current == true ....}]



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list