[
https://issues.jboss.org/browse/JBIDE-9531?page=com.atlassian.jira.plugin...
]
Viacheslav Kabanovich commented on JBIDE-9531:
----------------------------------------------
Test is ensured by combination of DependentProjectTest.testCleanDependentProject that
provides steps listed in the description and ValidationExceptionTest.testExceptions(),
that logs exceptions - there should be no NullPointerException when addressing scope
object obtained from scope declaration.
When project with scope annotation type is cleaned, validation of
scope declarations in dependent project fails with NullPointerException.
------------------------------------------------------------------------------------------------------------------------------------------
Key: JBIDE-9531
URL:
https://issues.jboss.org/browse/JBIDE-9531
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi
Affects Versions: 3.3.0.M2
Reporter: Viacheslav Kabanovich
Assignee: Viacheslav Kabanovich
Fix For: 3.3.0.M3
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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira