[jbosstools-issues] [JBoss JIRA] (JBIDE-17574) Warning missing when trying to inject bean without specified scope

Alexey Kazakov (JIRA) issues at jboss.org
Wed Jun 11 16:06:38 EDT 2014


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

Alexey Kazakov commented on JBIDE-17574:
----------------------------------------

Looks like a problem of as-you-type validation. This Test class is not a bean since it doesn't have any scope annotation. So it's not supposed to be validated as a bean. When you save the class it's ignored by the cdi validator. This is OK. But when you are editing the file you are seeing a warning added by as-you-type valiation (the class still is not a bean). This is a bug.

> Warning missing when trying to inject bean without specified scope
> ------------------------------------------------------------------
>
>                 Key: JBIDE-17574
>                 URL: https://issues.jboss.org/browse/JBIDE-17574
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdi
>    Affects Versions: 4.2.0.Beta2
>            Reporter: Rastislav Wagner
>            Assignee: Viacheslav Kabanovich
>             Fix For: 4.2.0.Beta3
>
>
> If Im not mistaken, we should show warning when trying to inject bean without specified scope and bean-discovery-mode="annotated"



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


More information about the jbosstools-issues mailing list