[
https://issues.jboss.org/browse/JBIDE-7988?page=com.atlassian.jira.plugin...
]
Daniel Azarov commented on JBIDE-7988:
--------------------------------------
Updated: if file is opened in editor - setSaveMode(TextFileChange.LEAVE_DIRTY), if not -
setSaveMode(TextFileChange.FORCE_SAVE);
CDI tools model is not updated after quick fix.
-----------------------------------------------
Key: JBIDE-7988
URL:
https://issues.jboss.org/browse/JBIDE-7988
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi (jsr-299)
Affects Versions: 3.2.0.Beta2
Reporter: Alexey Kazakov
Assignee: Daniel Azarov
Priority: Critical
Fix For: 3.2.0.CR1
1. Create the following class in CDI-enabled project:
class Goose_Broken {
@Inject
public Goose_Broken(String foo) {}
@Inject
public Goose_Broken(String foo, Double bar) {}
}
2. Build the project. There is two error markers on the injections because a bean can
have only one constructor annotated @Inject.
3. Double click on any error marker. Select "Delete @Inject annotation from all the
constructors but....". Press finish.
4. Now there is the only one @Inject in the class but error markers didn't disappear.
It's a problem of CDI model. It still has two @Inject methods. Try to modify the file
and Ctrl+S. It helps to get rid of the markers.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira