[jbosstools-issues] [JBoss JIRA] (JBIDE-17675) Validation error for subclasses of DeltaSpike JsfModuleConfig class

Alexey Kazakov (JIRA) issues at jboss.org
Wed Jun 25 17:11:24 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-17675?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12979433#comment-12979433 ] 

Alexey Kazakov commented on JBIDE-17675:
----------------------------------------

Actually, a bean doesn't require a public constructor. It's enough to have any constructor with no parameters or annotated @Inject. So JsfModuleConfig is a managed bean and JBT recognizes it as a bean. But there is a bug in CDI validator which requires a public constructor in the superclass of the bean annotated @Specializes.
So we don't have to treat JsfModuleConfig in a special way. Let's fix the validatior instead.

> Validation error for subclasses of DeltaSpike JsfModuleConfig class
> -------------------------------------------------------------------
>
>                 Key: JBIDE-17675
>                 URL: https://issues.jboss.org/browse/JBIDE-17675
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdi-extensions
>    Affects Versions: 4.2.0.Beta3
>            Reporter: Alexey Kazakov
>            Assignee: Viacheslav Kabanovich
>             Fix For: 4.2.0.Beta3
>
>
> 1. Clone deltaspike repo:
> {code}git clone https://git-wip-us.apache.org/repos/asf/deltaspike.git{code}
> 2. Import *deltaspike/examples* as an existing Maven project into JBT.
> 3. Open /deltaspike-jsf-playground/src/main/java/org/apache/deltaspike/playground/PlaygroundJsfModuleConfig.java with Java Editor
> 4. There is a validation error:
> *Managed bean class annotated @Specializes must directly extend the bean class of another managed bean [JSR-299 §3.1.4]*
> This error probably is a bug of CDI tools. We need to investigate it.



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)



More information about the jbosstools-issues mailing list