[weld-issues] [JBoss JIRA] Commented: (WELD-409) Remove custom equality for AnnotatedType and rely on cache/object equality

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Sat Jan 30 18:26:19 EST 2010


    [ https://jira.jboss.org/jira/browse/WELD-409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12509434#action_12509434 ] 

Stuart Douglas commented on WELD-409:
-------------------------------------

Removing the equals and hashCode errors results in the following failures: 

 testConstructorInjectionPoint(org.jboss.weld.tests.builtinBeans.BuiltInBeanPassivationCapableTest)
  testFieldInjectionPoint(org.jboss.weld.tests.builtinBeans.BuiltInBeanPassivationCapableTest)
  testMethodInjectionPoint(org.jboss.weld.tests.builtinBeans.BuiltInBeanPassivationCapableTest)
  testNewBeanHasSameConstructorAsWrappedBean(org.jboss.weld.tests.managed.newBean.NewSimpleBeanTest)

All of these seem to be related to the fact that .equals for InjectionPoint was delegating to .equals for WeldAnnotated

> Remove custom equality for AnnotatedType and rely on cache/object equality
> --------------------------------------------------------------------------
>
>                 Key: WELD-409
>                 URL: https://jira.jboss.org/jira/browse/WELD-409
>             Project: Weld
>          Issue Type: Bug
>          Components: Reflection layer
>            Reporter: Pete Muir
>            Assignee: Stuart Douglas
>             Fix For: 1.0.1.CR2
>
>
> Currently we use the underlying class to perform equality, this is wrong.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list