[jbosstools-issues] [JBoss JIRA] (JBIDE-9940) Quickfix and Wizard for fixing ambigious injection warning is confusing

Daniel Azarov (Issue Comment Edited) (JIRA) jira-events at lists.jboss.org
Tue Nov 8 13:42:45 EST 2011


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

Daniel Azarov edited comment on JBIDE-9940 at 11/8/11 1:41 PM:
---------------------------------------------------------------

Fixed:
1. Bean name in the page title

2.  "This set of qualifiers is not unique" changed to  "The set of qualifiers that makes the LoggerProducer.produceLog() unique for @Injection Logger log could not be found. You can make it unique by changing the qualifiers below"

3. "Create Qualifier" button moved to the left side, after creation new qualifier appears in available qualifiers list

!SpecifyCDIBeanNew.png!

4. Change Preview page added 

!SpecifyCDIBeanForInjectionPoint2.png!

!SpecifyCDIBeanForInjectionPoint3.png!
                
      was (Author: dazarov):
    Fixed:
1. Bean name in the page title

2.  "This set of qualifiers is not unique" changed to  "We could not find a set of qualifiers that makes the LoggerProducer.produceLog() unique for @Injection Logger log. You can make it unique by changing the qualifiers below"

3. "Create Qualifier" button moved to the left side, after creation new qualifier appears in available qualifiers list

!SpecifyCDIBean.png!

4. Change Preview page added 

!SpecifyCDIBeanForInjectionPoint2.png!

!SpecifyCDIBeanForInjectionPoint3.png!
                  
> Quickfix and Wizard for fixing ambigious injection warning is confusing
> -----------------------------------------------------------------------
>
>                 Key: JBIDE-9940
>                 URL: https://issues.jboss.org/browse/JBIDE-9940
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: CDI
>            Reporter: Max Rydahl Andersen
>            Assignee: Alexey Kazakov
>            Priority: Blocker
>             Fix For: 3.3.0.Beta1
>
>         Attachments: addremovequalifiers.png, quickfix_specify_bean_for_injection.png, SpecifyCDIBean.png, SpecifyCDIBeanForInjectionPoint1.png, SpecifyCDIBeanForInjectionPoint2.png, SpecifyCDIBeanForInjectionPoint3.png, SpecifyCDIBeanNew.png
>
>
> Tried to use the quickfix for fixing ambigious injection points - it is *very* confusing.
> I use the jboss-javaee6-webapp quickstart from Central and I get a warning about ambigous injection (which is true since there are two on the classpath)
> I get this when trying to quickfix it:
> !quickfix_specify_bean_for_injection.png!
> The message reads "Specify <some injection source> bean for injection to injection point".
> That sounds to me like when I press this it will figure out which qualifiers that is to be set on this to make it choose this.
> When I choose one of these it give me this wizard:
> !addremovequalifiers.png!
> And now my confusion starts:
> 1) Its not clear what "Bean" it is referring to - it is written in the long text label but that is not the first thing you look at - this should be more clear.
> 2) Its error is saying "This set of qualifiers is not unique" immediately - but it doesn't say which beans its actually matching so you don't really know what kind of "uniqueness" that is the problem. 
>  Maybe we should write something like "We could not find a set of qualifiers that makes the LoggerProducer.produceLog() unique for @Injection Logger log. You can make it unique by changing the  qualifiers below"
> 3) Using Create Qualifier I actually get a new qualifier showing up in the editor behind the wizard but it does not show up in available list of qualifiers and now a completely different qualifier have been added to Available section.
> 4) When I actually do add qualifiers and pres Finish - there is no warning or information about what actually will change; I would expect a preview dialog for this especially since we are actually changing the Bean source and not the injection point we are coming from.

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