[cdi-dev] [JBoss JIRA] (CDI-621) removeAll method can lead to	ambiguities
    Matej Novotny (JIRA) 
    issues at jboss.org
       
    Mon Jul 11 03:17:00 EDT 2016
    
    
  
    [ https://issues.jboss.org/browse/CDI-621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13263508#comment-13263508 ] 
Matej Novotny commented on CDI-621:
-----------------------------------
I am also unsure of what the ambiguity is in this case.
Do you mean you would rather rename the method to something like {{removeAllAnnotations}}? In that case you might say that all the methods are ambiguous...
> removeAll method can lead to ambiguities
> ----------------------------------------
>
>                 Key: CDI-621
>                 URL: https://issues.jboss.org/browse/CDI-621
>             Project: CDI Specification Issues
>          Issue Type: Clarification
>            Reporter: John Ament
>
> The method removeAll is ambiguous.  This problem doesn't exist for remove(Annotation) or remove(Class) since they're type safe.  The removeAll method presupposes that annotations are the only thing to configure.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
    
    
More information about the cdi-dev
mailing list