[
https://issues.jboss.org/browse/JBIDE-12436?page=com.atlassian.jira.plugi...
]
Vlado Pakan closed JBIDE-12436.
-------------------------------
Verified with JBT 4.0.0.Alpha1-v20120907-2341-B7.
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: 4.0.0.Alpha1
Reporter: Alexey Kazakov
Assignee: Victor Rubezhny
Fix For: 4.0.0.Alpha1
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
For more information on JIRA, see:
http://www.atlassian.com/software/jira