[ 
https://issues.apache.org/jira/browse/MYFACES-3081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010509#comment-13010509
 ] 

Michael Freedman commented on MYFACES-3081:
-------------------------------------------

Oops -- meant the fix is:
       application.addBehavior(behaviorId, behaviorClass); 
       return;

See patch file.

> javax.faces.Application addBehaviors() throws UnsupportedOperationException 
> when it shouldn't
> ---------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-3081
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3081
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: General
>    Affects Versions: 2.0.5-SNAPSHOT
>            Reporter: Michael Freedman
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.5-SNAPSHOT
>
>
> Line 140 of javax.faces.Application is currently:
>             application.addBehavior(behaviorId, behaviorClass);
> when it should be:
>             return application.addBehavior(behaviorId, behaviorClass);
> without the return we fall through and throw the 
> UnsupportedOperationException when we shouldn't.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to