[
https://issues.jboss.org/browse/JBRULES-3030?page=com.atlassian.jira.plug...
]
Edson Tirelli resolved JBRULES-3030.
------------------------------------
Resolution: Done
This is fixed. Test case added.
regression: compare from subclass field to superclass object flagged
by compiler
--------------------------------------------------------------------------------
Key: JBRULES-3030
URL:
https://issues.jboss.org/browse/JBRULES-3030
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 5.2.0.M2
Reporter: Wolfgang Laun
Assignee: Edson Tirelli
Priority: Blocker
Fix For: 5.3.0.Final
Attachments: compsubclass.tgz
Given classes such as:
abstract class Base {...}
class SubA extends Base {...}
class Fact { SubA subA;... }
and the rule
rule x
when
$base: Base( ... )
Fact( subA == $base )
then end
the compiler refuses to compile:
[Error: incompatible types in statement: class Base (compared from: class SubA)]
This works in 5.1.1!
--
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