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

Marián Labuda (JIRA) issues at jboss.org
Mon May 23 04:49:00 EDT 2016


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

Marián Labuda closed JBIDE-21220.
---------------------------------


Verified in Red Hat Developer Studio with build id: Alpha1-v20160520-0424-B5396.

> Incorrect JSF Phase Listener Warning
> ------------------------------------
>
>                 Key: JBIDE-21220
>                 URL: https://issues.jboss.org/browse/JBIDE-21220
>             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.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