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
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 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)
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)