[weld-issues] [JBoss JIRA] Updated: (WELD-542) Exception messages missing useful information: "Injection point has unsatisfied/ambiguous dependencies
Pete Muir (JIRA)
jira-events at lists.jboss.org
Tue Jun 1 11:17:51 EDT 2010
[ https://jira.jboss.org/browse/WELD-542?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pete Muir updated WELD-542:
---------------------------
Fix Version/s: 1.0.2.CR1
> Exception messages missing useful information: "Injection point has unsatisfied/ambiguous dependencies
> ------------------------------------------------------------------------------------------------------
>
> Key: WELD-542
> URL: https://jira.jboss.org/browse/WELD-542
> Project: Weld
> Issue Type: Bug
> Components: Resolution (Typesafe and by Name)
> Affects Versions: 1.0.1.Final
> Reporter: Lincoln Baxter III
> Fix For: 1.0.2.CR1
>
>
> I feel like the following exception message is missing some very useful information (e.g, the type of the object that could not be satisfied;) I don't want to have to look at the injection point in order to see what it couldn't find. Also, I have to skim over a few words before I get the information that really tells me what's going on. "Unsatisfied dependencies" should be the primary focus of the message.
> WELD-001408 Injection point has unsatisfied dependencies. Injection point: field org.jboss.seam.faces.status.MessagesAdapter.context; Qualifiers: [@javax.enterprise.inject.Default()]
> The message should probably look something like this, instead:
> WELD-001408 Unsatisfied dependencies for type [org.jboss.seam.international.status.Messages] at injection point [field] [org.jboss.seam.faces.status.MessagesAdapter.context]. Qualifiers: [@javax.enterprise.inject.Default()]
> This way, I immediately know that I have unsatisfied dependencies, and the type that cannot be resolved. From there, I can see where the type is being requested and its qualifiers.
> I'd like to see the same thing done for the Ambiguous dependencies exception message:
> Existing:
> Injection point has ambiguous dependencies. Injection point: field
> org.jboss.seam.faces.status.MessagesAdapter.context; Qualifiers: [@javax.enterprise.inject.Default()]; Possible dependencies: [org.jboss.seam.international.status.Messages1, org.jboss.seam.international.status.Messages2]
> Proposed:
> Ambiguous dependencies for type [org.jboss.seam.international.status.Messages] at injection point [field] [org.jboss.seam.faces.status.MessagesAdapter.context]. Qualifiers: [@javax.enterprise.inject.Default()]; Possible dependencies: [org.jboss.seam.international.status.Messages1, org.jboss.seam.international.status.Messages2]
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the weld-issues
mailing list