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] [Commented] (MYFACES-3081) javax.faces.Application addBehaviors() throws UnsupportedOperationException when it shouldn't
Date Wed, 23 Mar 2011 23:07:05 GMT

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

Leonardo Uribe commented on MYFACES-3081:
-----------------------------------------

Ok, no problem. I saw the problem and I already did as expected.

> 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
>
>         Attachments: MYFACES-3081.patch
>
>
> 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