[
https://issues.jboss.org/browse/JBIDE-15381?page=com.atlassian.jira.plugi...
]
Viacheslav Kabanovich updated JBIDE-15381:
------------------------------------------
Description:
If class is anotated @Vetoed or if its package is annotated @Vetoed, then it is excluded
from managed beans.
Test with archive.
1. Import project /org.jboss.tools.cdi.core.test/projects/CDIArchivesTest
2. Open class test.a.Test
3. Check that injection @Inject Venus venus; is not satisfied because class
test.d.planets.Venus in lib2/cdiastro.jar is annotated @Vetoed.
4. Check that injection @Inject Sirius sirius; is not satisfied because package
test.d.stars in lib2/cdiastro.jar is annotated @Vetoed. (jar file contains sources to
check that).
Test with sources.
1. Import project /org.jboss.tools.cdi.core.test/projects/tck1.1
2. Open class org.jboss.jsr299.tck.tests.jbt.vetoed.Injections
3. Check that @Inject Pond pond; is not satisfied because
org.jboss.jsr299.tck.tests.jbt.vetoed.Pond is annotated @Vetoed.
4. Check that @Inject Black black; is not satisfied because package
org.jboss.jsr299.tck.tests.jbt.vetoed.seas is annotated @Vetoed.
5. Check that @Inject Caspian caspian; is satisfied because package
org.jboss.jsr299.tck.tests.jbt.vetoed.seas.inner is not annotated @Vetoed although it is a
subpackage of an annotated package.
6. Check that @Inject Pond.Creek creek; is satisfied because class Pond.Creek is not
annotated @Vetoed although it is a nested class in an annotated class.
was:
If class is anotated @Vetoed or if its package is annotated @Vetoed, then it is excluded
from managed beans.
Support annotation @Vetoed
--------------------------
Key: JBIDE-15381
URL:
https://issues.jboss.org/browse/JBIDE-15381
Project: Tools (JBoss Tools)
Issue Type: Sub-task
Components: CDI
Reporter: Viacheslav Kabanovich
Assignee: Viacheslav Kabanovich
Labels: new_and_noteworthy
Fix For: 4.2.0.Alpha1
If class is anotated @Vetoed or if its package is annotated @Vetoed, then it is excluded
from managed beans.
Test with archive.
1. Import project /org.jboss.tools.cdi.core.test/projects/CDIArchivesTest
2. Open class test.a.Test
3. Check that injection @Inject Venus venus; is not satisfied because class
test.d.planets.Venus in lib2/cdiastro.jar is annotated @Vetoed.
4. Check that injection @Inject Sirius sirius; is not satisfied because package
test.d.stars in lib2/cdiastro.jar is annotated @Vetoed. (jar file contains sources to
check that).
Test with sources.
1. Import project /org.jboss.tools.cdi.core.test/projects/tck1.1
2. Open class org.jboss.jsr299.tck.tests.jbt.vetoed.Injections
3. Check that @Inject Pond pond; is not satisfied because
org.jboss.jsr299.tck.tests.jbt.vetoed.Pond is annotated @Vetoed.
4. Check that @Inject Black black; is not satisfied because package
org.jboss.jsr299.tck.tests.jbt.vetoed.seas is annotated @Vetoed.
5. Check that @Inject Caspian caspian; is satisfied because package
org.jboss.jsr299.tck.tests.jbt.vetoed.seas.inner is not annotated @Vetoed although it is a
subpackage of an annotated package.
6. Check that @Inject Pond.Creek creek; is satisfied because class Pond.Creek is not
annotated @Vetoed although it is a nested class in an annotated class.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira