EXECUTE: Import projects CDITest1, CDITest2, CDITest3 from org.jboss.tools.cdi.core.test and build them.
EXECUTE: Open in CDITest3/src/cdi/test3/TestBean3.java with producer method foo() annotated with @TestScope.
EXECUTE: Disable automatic build.
EXECUTE: Clean CDITest2 project with option 'Start a build immediately' disabled in 'Clean' dialog.
EXECUTE: Run validation of CDITest3/src/cdi/test3/TestBean3.java file.
FAILURE: Null pointer exception in CDICoreValidator.validateBean at accessing scope obtained by scopeDeclaration.getScope().
Scope declaration returns scope object by looking it up in hierarchy of projects. If project declaring the scope is cleaned, scope object cannot be found unless its last version was cached by dependent project. Dependent project should always return the most recent version of annotation type object provided by project that declares it.