You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by "Richard Hensley (JIRA)" <hi...@jakarta.apache.org> on 2005/05/19 00:51:52 UTC
[jira] Updated: (HIVEMIND-124) Report a proper message when a constructor argument in BuilderFactory is invalid
[ http://issues.apache.org/jira/browse/HIVEMIND-124?page=all ]
Richard Hensley updated HIVEMIND-124:
-------------------------------------
Attachment: patch.txt
I've added a patch to the BuilderPropertyFacetTest and BuilderPropertyFacet that works the way I'm proposing in this report.
> Report a proper message when a constructor argument in BuilderFactory is invalid
> --------------------------------------------------------------------------------
>
> Key: HIVEMIND-124
> URL: http://issues.apache.org/jira/browse/HIVEMIND-124
> Project: HiveMind
> Type: Bug
> Components: framework
> Reporter: Richard Hensley
> Attachments: patch.txt
>
> My situation is that I use constructor arguments for all my required parameters of objects. The code inside of the BuilderFactoryLogic uses the BuilderPropertyFactet.isAssignableFrom() method to figure out if a particular parameter in a constructor is right. The BuilderPropertyFactet.isAssignableFrom() eats an ApplicationRuntimeException and returns false. This is bad when you miss-spell a service name, for instance:
> <service>service:MyServic</service>
> When you meant,
> <service>service:MyService</service>
> The error that Hivemind throws is that it had trouble finding a valid constructor, when the real problem was that it had problems finding your service to even check if the constructor was valid.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org