[jbosstools-issues] [JBoss JIRA] (JBIDE-21220) Incorrect JSF Phase Listener Warning
Vlado Pakan (JIRA)
issues at jboss.org
Wed Dec 9 07:44:01 EST 2015
Vlado Pakan created JBIDE-21220:
-----------------------------------
Summary: 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.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