[jbosstools-issues] [JBoss JIRA] (JBIDE-21113) Incorrect JSF Phase Listener Warning

Alexey Kazakov (JIRA) issues at jboss.org
Thu Nov 19 20:44:00 EST 2015


     [ https://issues.jboss.org/browse/JBIDE-21113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Kazakov updated JBIDE-21113:
-----------------------------------
    Fix Version/s: 4.3.1.Beta1
                   4.4.0.Alpha1
                       (was: 4.3.x)
                       (was: 4.4.x)


> Incorrect JSF Phase Listener Warning
> ------------------------------------
>
>                 Key: JBIDE-21113
>                 URL: https://issues.jboss.org/browse/JBIDE-21113
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: jsf
>    Affects Versions: 4.3.0.Final
>         Environment: Mars.1
> Java 8
>            Reporter: Cody Lerum
>            Assignee: Viacheslav Kabanovich
>             Fix For: 4.3.1.Beta1, 4.4.0.Alpha1
>
>
> When adding a JSF phase listener to faces-config.xml
> {code}
> <lifecycle>
>    <phase-listener>com.demo.web.jsf.JsfCdiPhaseListener</phase-listener>
> </lifecycle>
> {code}
> You are presented a warning that {{phase-listener references to "com.demo.web.jsf.JsfCdiPhaseListener" that does not extend javax.faces.event.PhaseListener}}
> In reality you cannot extend javax.faces.event.PhaseListener you must implement it. So this check should be looking for implements rather than extends. See http://balusc.omnifaces.org/2006/09/debug-jsf-lifecycle.html
> In java 8 at least you get a compiler error if you try and extend avax.faces.event.PhaseListener.
> The type PhaseListener cannot be the superclass of JsfCdiPhaseListener; a superclass must be a class



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list