[jboss-jira] [JBoss JIRA] (JBRULES-3494) Accumulate with vars having a different order than the one imposed by Declaration's hashCode causes a ClassCastException

Mario Fusco (JIRA) jira-events at lists.jboss.org
Tue May 8 07:36:17 EDT 2012


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

Mario Fusco resolved JBRULES-3494.
----------------------------------

    Fix Version/s: 5.4.0.Final
       Resolution: Done

    
> Accumulate with vars having a different order than the one imposed by Declaration's hashCode causes a ClassCastException
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBRULES-3494
>                 URL: https://issues.jboss.org/browse/JBRULES-3494
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Mario Fusco
>            Assignee: Mario Fusco
>             Fix For: 5.4.0.Final
>
>
> Running the following drl causes a ClassCastException:
> import java.util.List
> declare MessageHolder
>     id : String
>     msg: String
> end
> query getResults( String $mId, List $holders )
>   accumulate(  
>     $holder  : MessageHolder( id == $mId, $ans : msg ),
>     $holders : collectList( $holder )
> ) 
> end
> rule "Init"
> when
> then
>   insert( new MessageHolder( "1", "x" ) );
> end

--
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