[
https://issues.jboss.org/browse/JBIDE-12436?page=com.atlassian.jira.plugi...
]
Alexey Kazakov commented on JBIDE-12436:
----------------------------------------
Please, add a new JUnit test for the issue.
False validation problem for elements annotated @SuppressWarnings
-----------------------------------------------------------------
Key: JBIDE-12436
URL:
https://issues.jboss.org/browse/JBIDE-12436
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: common/jst/core
Affects Versions: 3.4.0.M1
Reporter: Alexey Kazakov
Assignee: Victor Rubezhny
Fix For: 3.4.0.M1
1. Create a cdi project.
2. Create the following class:
{code}
public class TestNamed {
@SuppressWarnings("cdi-ambiguous-dependency")
@Inject String s; // Ambiguous
@Produces
public String foo1;
@Produces
public String foo2;
}
{code}
3. Change "cdi-ambiguous-dependency" to "xyz"
4. There is a warning on @Inject
5. Change "xyz" to "cdi-ambiguous-dependency" back (don't save
the file!)
6. There is still the same warning on @Inject. This is a bug.
7. Edit @Inject String s -> @Inject String ss
8. There is no warning any more on @Inject
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira