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

Wizard 'Specify CDI Bean for the Injection Point' does not compute correctly condition 'can finish'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.3.0.Beta1
    • 3.3.0.M5
    • cdi
    • None

      EXECUTE: Create CDI qualifier @Q("value") and bean:

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

      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.

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

              Created:
              Updated:
              Resolved: