[jbosstools-issues] [JBoss JIRA] (JBIDE-10637) Wizard 'Specify CDI Bean for the Injection Point' does not compute correctly condition 'can finish'

Daniel Azarov (JIRA) jira-events at lists.jboss.org
Wed Feb 15 14:03:36 EST 2012


    [ https://issues.jboss.org/browse/JBIDE-10637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12666874#comment-12666874 ] 

Daniel Azarov commented on JBIDE-10637:
---------------------------------------

I did following changes:

1. Added support for different types of parameters of qualifier (if there is qualifier declaration values will be taken from it, if not default values will be taken from Annotation Type)

2. Made quick fix not to generate and add value if there is default value in Annotation Type

3. Fixed button "Can Finish" enablement mechanism
                
> Wizard 'Specify CDI Bean for the Injection Point' does not compute correctly condition 'can finish'
> ---------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-10637
>                 URL: https://issues.jboss.org/browse/JBIDE-10637
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: CDI
>    Affects Versions: 3.3.0.M5
>            Reporter: Viacheslav Kabanovich
>            Assignee: Viacheslav Kabanovich
>             Fix For: 3.3.0.Beta1
>
>
> EXECUTE: Create CDI qualifier @Q("value") and bean:
> {code}
> public class MyBean  { 
> 	@Inject
> 	void a(@Q("x") Object b) {}
> 	
> 	@Produces @Q("b1") Object b1;
> 	@Produces @Q("b2") Object b2;
> 	@Produces @Q("b3") Object b3;
> 	@Produces @Q("b4") Object b4;
> 	@Produces @Q("b5") Object b5;
> 	@Produces @Q("b6") Object b6;
> 	@Produces @Q("b8") Object b8;
> }
> {code}
> ASSERT: There is an error marker at the method parameter 'No bean is eligible...'.
> EXECUTE: Invoke quick fixes and run 'Select bean to configure the injection point'.
> ASSERT: Wizard 'Specify CDI Bean for the Injection Point' appears with options MyBean.b1, MyBean.b2, etc.
> MINOR FAILURE: Available beans are not sorted, and are listed in a different order after each rebuilding of the project.
> MINOR FAILURE: There is no initial selection (most selection wizards auto-select the first element of the list if it is not empty)
> EXECUTE: Select any option
> ASSERT: Finish button is enabled. (That is OK.)
> Further, two cases:
> Case 1.
> EXECUTE: Click another option.
> FAILURE: Finish button in some cases gets and then remains disabled. (It still gets/remains enabled if 'MyBean.b1' is selected after 'MyBean').
> Case 2.
> EXECUTE: Click 'Next>' button.
> FAILURE: Finish button in some cases gets disabled, and remains disabled after '<Back' is clicked.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list