[
https://issues.jboss.org/browse/JBIDE-7668?page=com.atlassian.jira.plugin...
]
Daniel Azarov updated JBIDE-7668:
---------------------------------
Description:
This quick fix should offer next:
1. Delete @Disposes annotation
2. Delete @Observes annotation
Test case:
EXECUTE: Create CDI project
EXECUTE: Create TestBean class
{code}
package org.test;
import javax.enterprise.event.Observes;
import javax.enterprise.inject.Disposes;
import javax.enterprise.inject.Produces;
public class TestBean {
@Produces
public String produce(){
return "a";
}
public void method(@Observes String param1, @Disposes String param2){
}
}
{code}
ASSERT: @Observes and @Disposes annotations should be marked by problem markers
EXECUTE: Point mouse to @Observes or @Disposes annotations
ASSERT: Text hover with quick fixes appears
was:
This quick fix should offer next:
1. Delete @Disposes annotation
2. Delete @Observes annotation
Quick fix for "Observer method has a parameter annotated
@Disposes [JSR-299 §10.4.2]" error marker
--------------------------------------------------------------------------------------------------
Key: JBIDE-7668
URL:
https://issues.jboss.org/browse/JBIDE-7668
Project: Tools (JBoss Tools)
Issue Type: Sub-task
Components: cdi
Reporter: Daniel Azarov
Assignee: Daniel Azarov
Labels: new_and_noteworthy
Fix For: 3.3.x
This quick fix should offer next:
1. Delete @Disposes annotation
2. Delete @Observes annotation
Test case:
EXECUTE: Create CDI project
EXECUTE: Create TestBean class
{code}
package org.test;
import javax.enterprise.event.Observes;
import javax.enterprise.inject.Disposes;
import javax.enterprise.inject.Produces;
public class TestBean {
@Produces
public String produce(){
return "a";
}
public void method(@Observes String param1, @Disposes String param2){
}
}
{code}
ASSERT: @Observes and @Disposes annotations should be marked by problem markers
EXECUTE: Point mouse to @Observes or @Disposes annotations
ASSERT: Text hover with quick fixes appears
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira