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

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Mon Aug 15 20:30:03 EDT 2011


     [ https://issues.jboss.org/browse/JBIDE-9531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Kazakov resolved JBIDE-9531.
-----------------------------------

    Resolution: Done


Fixed

> 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: Alexey Kazakov
>             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