[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-9531) When project with scope annotation type is cleaned, validation of scope declarations in dependent project fails with NullPointerException.

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Thu Aug 11 15:32:01 EDT 2011


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

        


More information about the jbosstools-issues mailing list