Mario Fusco created JBRULES-3494:
------------------------------------
Summary: 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
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