[jbosstools-issues] [JBoss JIRA] (JBIDE-10611) As-you-type CDI validation

Isaac Rooskov (JIRA) jira-events at lists.jboss.org
Sun Dec 2 23:44:21 EST 2012


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

Isaac Rooskov updated JBIDE-10611:
----------------------------------

    Release Notes Docs Status: Documented as Feature Request
                       Writer: irooskov
           Release Notes Text: Validation that occurs as-you-type has been added for context dependency injection.

    
> As-you-type CDI validation
> --------------------------
>
>                 Key: JBIDE-10611
>                 URL: https://issues.jboss.org/browse/JBIDE-10611
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: CDI
>            Reporter: Alexey Kazakov
>            Assignee: Alexey Kazakov
>              Labels: new_and_noteworthy
>             Fix For: 4.0.0.Alpha1
>
>         Attachments: JBIDE-10611.ogv, out-3.avi
>
>
> It would be great to have as-you-type CDI (JSR-299) validation for Java and beans.xml files.
> 1. Create a cdi project.
> 2. Create the following bean:
> {code}
> package test;
> import javax.enterprise.inject.Produces;
> import javax.inject.Inject;
> import javax.inject.Named;
> public class Test {
> 	@Inject @Named Test2 create;
> 	@Produces
> 	@Named
> 	public Test2 create() {
> 		return new Test2();
> 	}
> 	@Produces
> 	@Named("create")
> 	public Test2 create2() {
> 		return new Test2();
> 	}
> 	public static class Test2 {
> 	}
> }
> {code}
> 3. There three waring messages. One on the injection sying there is an ambiguous injection point. And two on the producers sying there a two beans with the same EL names.
> 4. Comment line #18: // @Named("create"). Don't save the file!
> 5. All the warings are gone.
> 6. Save the file.
> 7. Open the beans.xml
> 8. Add the following code there:
> {code}
> <alternatives>
> 	<class>test.Test</class>
> </alternatives>
> {code}
> 9. Don't save the file.
> 10. There is an error on test.Test since the class bean is not an alternative.
> https://vimeo.com/47965113

--
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


More information about the jbosstools-issues mailing list