Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-9531

When project with scope annotation type is cleaned, validation of scope declarations in dependent project fails with NullPointerException.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.M3
    • 3.3.0.M2
    • cdi
    • None

      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.

            scabanovich Viacheslav Kabanovich (Inactive)
            scabanovich Viacheslav Kabanovich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: