[jbosstools-issues] [JBoss JIRA] Updated: (JBIDE-9423) CDI Validation throws NPE
Alexey Kazakov (JIRA)
jira-events at lists.jboss.org
Thu Jul 28 18:24:24 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-9423?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Kazakov updated JBIDE-9423:
----------------------------------
Parent: (was: JBIDE-6644)
Issue Type: Bug (was: Sub-task)
> CDI Validation throws NPE
> -------------------------
>
> Key: JBIDE-9423
> URL: https://issues.jboss.org/browse/JBIDE-9423
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: cdi
> Reporter: Alexey Kazakov
> Assignee: Alexey Kazakov
> Labels: new_and_noteworthy
> Fix For: 3.3.0.M3
>
>
> This quick fix should offer to Delete @Specializes annotation
> Test case:
> EXECUTE: Create CDI project
> EXECUTE: Create TestBean class
> {code}
> package org.test;
> import javax.enterprise.inject.Specializes;
> import javax.interceptor.Interceptor;
> @Interceptor
> @FooBinding
> @Specializes
> public class TestBean extends AnyBean{
> public String produce(){
> return "a";
> }
> }
> {code}
> ASSERT: @Specializes annotation should be marked by problem marker
> EXECUTE: Point mouse to @Specializes annotation
> ASSERT: Text hover with quick fixe appears
> EXECUTE: Create TestBean2 class
> {code}
> package org.test;
> import javax.decorator.Decorator;
> import javax.decorator.Delegate;
> import javax.enterprise.inject.Specializes;
> import javax.inject.Inject;
> @Decorator
> @Specializes
> public class TestBean2 extends AnyBean{
> @Inject @Delegate @AAnnotation String str;
> public String produce(){
> return str;
> }
> }
> {code}
> ASSERT: @Specializes annotation should be marked by problem marker
> EXECUTE: Point mouse to @Specializes annotation
> ASSERT: Text hover with quick fixe appears
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list