myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Resolved] (MYFACES-3081) javax.faces.Application addBehaviors() throws UnsupportedOperationException when it shouldn't
Date Wed, 23 Mar 2011 22:47:05 GMT

     [ https://issues.apache.org/jira/browse/MYFACES-3081?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Leonardo Uribe resolved MYFACES-3081.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.5-SNAPSHOT
         Assignee: Leonardo Uribe

Thanks to Michael Freedman for provide this patch.

> 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

Mime
View raw message