[jboss-jira] [JBoss JIRA] Updated: (JBRULES-3030) regression: compare from subclass field to superclass object flagged by compiler
Wolfgang Laun (JIRA)
jira-events at lists.jboss.org
Fri May 13 05:11:31 EDT 2011
[ https://issues.jboss.org/browse/JBRULES-3030?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wolfgang Laun updated JBRULES-3030:
-----------------------------------
Summary: regression: compare from subclass field to superclass object flagged by compiler (was: re)
Priority: Blocker (was: Major)
Description:
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!
> 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)
> Reporter: Wolfgang Laun
> Assignee: Mark Proctor
> Priority: Blocker
>
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list