[jboss-jira] [JBoss JIRA] (JBRULES-3538) 2 accumulates followed by an "or" causes a bogus ClassCast exception

K C (JIRA) jira-events at lists.jboss.org
Mon Jun 11 08:41:04 EDT 2012


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

K C updated JBRULES-3538:
-------------------------

    Steps to Reproduce: 
Test case included. Fails with 
org.drools.RuntimeDroolsException: java.lang.ClassCastException: org.drools.reteoo.InitialFactImpl cannot be cast to org.drools.test.DroolsTest$Person

Changing the "or" on line 24 to "and" doesn't trigger the bug.

(Had a look at JBRULES-3482 which seems very similar, but apparently it's different enough not to be fixed in 5.4.0.Final or 5.5.0-SNAPSHOT.)

  was:
Test case included. Fails with 
org.drools.RuntimeDroolsException: java.lang.ClassCastException: org.drools.reteoo.InitialFactImpl cannot be cast to org.drools.test.DroolsTest$Person

Changing the "or" on line 24 to "and" doesn't trigger the bug.


    
> 2 accumulates followed by an "or" causes a bogus ClassCast exception
> --------------------------------------------------------------------
>
>                 Key: JBRULES-3538
>                 URL: https://issues.jboss.org/browse/JBRULES-3538
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler
>    Affects Versions: 5.4.0.Final
>            Reporter: K C
>            Assignee: Mark Proctor
>              Labels: ClassCastException, accumulate, or
>         Attachments: DroolsTest.java, drools_test.drl
>
>


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