<br> Henry,<br><br> Can you plz open a JIRA with a test case. It looks like a bug to me.<br><br> []s<br> Edson<br><br><div><span class="gmail_quote">2008/1/29, Henry Canterburry <<a href="mailto:canterburry@gmail.com">canterburry@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
OK...new discovery...the class case exception only happens if I apply a<br>criteria to the pattern:<br><br>For example:<br><br>$filtered : MyObjectType() from $source.getMyObjectTypes() << returns MyObjectType[]<br>
<br>works while...<br><br>$filtered : MyObjectType( field != null ) from $source.getMyObjectTypes() << returns MyObjectType[]<br><br>Gives me a ClassCastException.<br><br>HC<br><br><br>H. Canterburry wrote:<br>> No...no one?<br>
><br>> My primary concern is to apply a filtering pattern to an array like so...<br>> (this array is non collections based)<br>><br>> when<br>> $source : SourceObject()<br>> $filtered : MyObjectType( field == "criteria" ) from<br>
> $source.getMyObjectTypes() << returns MyObjectType[]<br>> then<br>> ... do something with the filtered object<br>><br>> I am getting a ClassCaseException in the from line.<br>><br>> Anyone? Please?<br>
> HC<br>><br>><br>><br><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>