Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-12436

False validation problem for elements annotated @SuppressWarnings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.Alpha1
    • 4.0.0.Alpha1
    • common
    • None

      1. Create a cdi project.
      2. Create the following class:

      public class TestNamed {
      
      	@SuppressWarnings("cdi-ambiguous-dependency") 
      	@Inject String s; // Ambiguous 
      
      	@Produces 
      	public String foo1;
      
      	@Produces
      	public String foo2;
      }
      

      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

            vrubezhny Victor Rubezhny (Inactive)
            alexeykazakov Alexey Kazakov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: