[
https://issues.jboss.org/browse/JBIDE-9483?page=com.atlassian.jira.plugin...
]
Viacheslav Kabanovich commented on JBIDE-9483:
----------------------------------------------
Implemented without immediate full build after modification of
javax.enterprise.inject.spi.Extension. Full build of involved projects is required to
update validation of all resources that might be affected.
CDI extensions are not loaded if they are declared in a source
folder.
----------------------------------------------------------------------
Key: JBIDE-9483
URL:
https://issues.jboss.org/browse/JBIDE-9483
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: cdi extensions
Affects Versions: 3.3.0.M3
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Fix For: 3.3.0.M3
CDI extensions are loaded only if they are declared in jar files. We should load them
from source folders too.
EXECUTE: Create two CDI projects: Project A and B. Project A should be included in the
class path of project B.
EXECUTE: Create a file
A/<sourceFolder>/META-INF/services/javax.enterprise.inject.spi.Extension
EXECUTE: Add the following text to the service file:
{code}
org.jboss.seam.servlet.ServletExtension
{code}
EXECUTE: Create any bean in project B and add the following injection point to the bean:
{code}
@Inject @RequestParam("id")
private String bookId;
{code}
ASSERT: bookId is not marked as unsatisfied dependency. <- Failure
EXECUTE: Remove
A/<sourceFolder>/META-INF/services/javax.enterprise.inject.spi.Extension
EXECUTE: Build the projects.
ASSERT: bookId is marked as unsatisfied dependency.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira