[jboss-jira] [JBoss JIRA] (JBRULES-3441) Declared Beans with interface-typed fields cause exceptions when evaluating equals() and hashCode()

Davide Sottara (JIRA) jira-events at lists.jboss.org
Sun Apr 1 21:44:47 EDT 2012


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

Davide Sottara updated JBRULES-3441:
------------------------------------

    Summary: Declared Beans with interface-typed fields cause exceptions when evaluating equals() and hashCode()   (was: Declared Beans with interface-typed fields cause exceptions when evaluating hashCode() )

    
> Declared Beans with interface-typed fields cause exceptions when evaluating equals() and hashCode() 
> ----------------------------------------------------------------------------------------------------
>
>                 Key: JBRULES-3441
>                 URL: https://issues.jboss.org/browse/JBRULES-3441
>             Project: Drools
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: drools-compiler, drools-core
>            Reporter: Davide Sottara
>            Assignee: Davide Sottara
>
> Given an interface:
> interface SomeInterface { 
>   int getId(); 
>   void setId(int id); 
> } 
> and a declared bean:
> declare SomeFact ( 
>   x : SomeInterface @key 
> ) 
> the system throws an exception "a class is expected but an interface is found" when evaluating the hashCode method

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