You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "John D. Ament" <jo...@apache.org> on 2017/07/29 21:55:10 UTC
Wrong exception thrown when value missing in config
I noticed the following logic:
if (!hasValue) {
deploymentProblems.add(new
IllegalArgumentException("Missing converter for '" + key + "' from " +
injectionPoint));
}
The problem isn't that the converter is missing, but that the value is
missing (and there's no default set). Anyone against fixing the message?
John
Re: Wrong exception thrown when value missing in config
Posted by Mark Struberg <st...@yahoo.de>.
+1
txs and LieGrue,
strub
> Am 30.07.2017 um 09:26 schrieb Romain Manni-Bucau <rm...@gmail.com>:
>
> +1
>
>
> Romain Manni-Bucau
> @rmannibucau | Blog | Old Blog | Github | LinkedIn | JavaEE Factory
>
> 2017-07-29 23:55 GMT+02:00 John D. Ament <jo...@apache.org>:
> I noticed the following logic:
>
> if (!hasValue) {
> deploymentProblems.add(new IllegalArgumentException("Missing converter for '" + key + "' from " + injectionPoint));
> }
>
> The problem isn't that the converter is missing, but that the value is missing (and there's no default set). Anyone against fixing the message?
>
> John
>
Re: Wrong exception thrown when value missing in config
Posted by Romain Manni-Bucau <rm...@gmail.com>.
+1
Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> | Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>
2017-07-29 23:55 GMT+02:00 John D. Ament <jo...@apache.org>:
> I noticed the following logic:
>
> if (!hasValue) {
> deploymentProblems.add(new IllegalArgumentException("Missing
> converter for '" + key + "' from " + injectionPoint));
> }
>
> The problem isn't that the converter is missing, but that the value is
> missing (and there's no default set). Anyone against fixing the message?
>
> John
>