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

Gal Nitzan (JIRA) issues at jboss.org
Mon May 28 19:12:00 EDT 2018


Gal Nitzan created DROOLS-2594:
----------------------------------

             Summary: 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: Edson Tirelli
            Priority: Critical


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