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

Validation problem not removed when package excluded

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.1.0.Alpha1
    • 4.0.0.CR1
    • cdi-extensions
    • None
    • Hide

      STEP: create cdi deltaspike project
      STEP: create components to have "multiple eligible beans":

      package test;
      
      public interface CustomInterface {
      
      }
      
      package test.impl1;
      
      import test.CustomInterface;
      
      public class InterfaceImpl1 implements CustomInterface {
      
      }
      
      package test.impl2;
      
      import test.CustomInterface;
      
      public class InterfaceImpl2 implements CustomInterface {
      
      }
      
      package test;
      
      import javax.inject.Inject;
      
      public class Test {
      
      	@Inject
      	private CustomInterface test;
      	
      }
      

      STEP: add into test.impl1 package-info.java:

      @org.apache.deltaspike.core.api.exclude.annotation.Exclude
      package test.impl1;
      

      ASSERT: validation error should be removed because one bean is excluded (bean's package is excluded)
      FAIL: validation error is still in problems view and java editor of Test.java

      Show
      STEP: create cdi deltaspike project STEP: create components to have "multiple eligible beans": package test; public interface CustomInterface { } package test.impl1; import test.CustomInterface; public class InterfaceImpl1 implements CustomInterface { } package test.impl2; import test.CustomInterface; public class InterfaceImpl2 implements CustomInterface { } package test; import javax.inject.Inject; public class Test { @Inject private CustomInterface test; } STEP: add into test.impl1 package-info.java: @org.apache.deltaspike.core.api.exclude.annotation.Exclude package test.impl1; ASSERT: validation error should be removed because one bean is excluded (bean's package is excluded) FAIL: validation error is still in problems view and java editor of Test.java
    • Workaround Exists
    • Hide

      Workaround 1. Call context menu action Validate on the project or just on its part that is known to be affected (in this case Test.java)
      Workaround 2. Edit and save affected file (in this case Test.java)

      Show
      Workaround 1. Call context menu action Validate on the project or just on its part that is known to be affected (in this case Test.java) Workaround 2. Edit and save affected file (in this case Test.java)

          alexeykazakov Alexey Kazakov
          jjankovi Jaroslav Jankovič (Inactive)
          Votes:
          0 Vote for this issue
          Watchers:
          5 Start watching this issue

            Created:
            Updated:
            Resolved: