[weld-issues] [JBoss JIRA] (WELD-1084) Introduce class InterceptorBinding

Marko Lukša (JIRA) jira-events at lists.jboss.org
Thu Mar 8 10:27:37 EST 2012


Marko Lukša created WELD-1084:
---------------------------------

             Summary: Introduce class InterceptorBinding
                 Key: WELD-1084
                 URL: https://issues.jboss.org/browse/WELD-1084
             Project: Weld
          Issue Type: Task
            Reporter: Marko Lukša
            Assignee: Marko Lukša


Currently, there is no special class representing interceptor bindings. The bindings are represented as {{Annotation}}. Thus it is impossible to know whether {{Set<Annotation>}} contains only annotations representing interceptor bindings or other annotations also.

Also, Annotation instances are proxied and their {{equals}} is broken, so that {{annotation1.equals(annotation2)}} will return false even if both annotation1 and annotation2 represent the same annotation (e.g. @MyAnnotation).

Furthermore, when considering if two interceptor bindings are equal, all the non-binding members of the annotation should be ignored.

If instead of just passing around {{Annotation}}s, we passed {{InterceptorBinding}}s, a lot of the code would be clearer and we'd also probably have no bugs related to the proxy.equals bug.




--
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 weld-issues mailing list