[jboss-jira] [JBoss JIRA] Closed: (JBRULES-1389) using eval after using or causes ClassCastException
Edson Tirelli (JIRA)
jira-events at lists.jboss.org
Tue Feb 19 09:01:26 EST 2008
[ http://jira.jboss.com/jira/browse/JBRULES-1389?page=all ]
Edson Tirelli closed JBRULES-1389.
----------------------------------
Fix Version/s: 4.0.5
5.0.0-M1
Resolution: Done
Fixed. Test case added.
Thanks for reporting and providing test case.
> using eval after using or causes ClassCastException
> ---------------------------------------------------
>
> Key: JBRULES-1389
> URL: http://jira.jboss.com/jira/browse/JBRULES-1389
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.0.3
> Environment: Windows XP, Linux,
> Reporter: Jan Boboli
> Assigned To: Edson Tirelli
> Priority: Blocker
> Fix For: 4.0.5, 5.0.0-M1
>
> Attachments: Bug.zip
>
>
> when using eval after using or the ClassCastException occurs.
> Here is a code of the rule causing classcast :
> when
> CccObject()
> BbbObject($bbb:bbb)
> $aaa:AaaObject(aaa==$bbb)
> or
> AaaObject(aaa=="ccc")
>
> eval($aaa.getAaa().equals($bbb))
> then
> System.out.println( "Success!!" );
>
> end
> here is the stacktrace:
> org.drools.RuntimeDroolsException: java.lang.ClassCastException: com.sample.CccObjectShadowProxy cannot be cast to com.sample.BbbObject
> at org.drools.rule.EvalCondition.isAllowed(EvalCondition.java:76)
> ...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list