[jboss-jira] [JBoss JIRA] (JBRULES-3407) Error generating invokers using a declaration having a primitive type

Mario Fusco (JIRA) jira-events at lists.jboss.org
Fri Mar 2 12:56:36 EST 2012


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

Mario Fusco resolved JBRULES-3407.
----------------------------------

    Fix Version/s: 5.4.0.CR1
       Resolution: Done

    
> Error generating invokers using a declaration having a primitive type
> ---------------------------------------------------------------------
>
>                 Key: JBRULES-3407
>                 URL: https://issues.jboss.org/browse/JBRULES-3407
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Mario Fusco
>            Assignee: Mario Fusco
>             Fix For: 5.4.0.CR1
>
>
> When the value type of a declaration is primitive, the invokers created via mvel templating using that declaration cannot be compiled because they try to do an invalid cast from an Object to a primitive type, generating an error as it follows:
> java.lang.AssertionError: Unable to generate rule invoker. : [Accumulate: input=[AND [[Pattern: id=null; objectType=MyObj]] ]]
> org/drools/Rule_foo_3191b39fd6ce40eaac55301df07acc19AccumulateExpression0Invoker.java (19:754) : Cannot cast from Object to long

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list