[jboss-jira] [JBoss JIRA] (DROOLS-291) ClassCastException during constraint jitting when an interface is used for implementation and traiting
Davide Sottara (JIRA)
jira-events at lists.jboss.org
Tue Oct 8 02:28:02 EDT 2013
Davide Sottara created DROOLS-291:
-------------------------------------
Summary: ClassCastException during constraint jitting when an interface is used for implementation and traiting
Key: DROOLS-291
URL: https://issues.jboss.org/browse/DROOLS-291
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 6.0.0.CR4, 5.5.0.Final
Reporter: Davide Sottara
Assignee: Mark Proctor
Priority: Critical
The following combination is needed:
- an interface IX with at least one getter/setter pair
- a trait IY extending IX
- a class K implementing IX
- a jittable constraint on IX
The constraint is first triggered by an "instance" of IY,
but jitted by an instance of K.
The condition analyzer assumes that IY is the natural
domain of the constratint, rather than IX. The jitted
constraint will then try to cast K to IY, resulting in
a disruptive CCE
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list