RE: Blueprint issue with generics

2016-09-30 Thread CLEMENT Jean-Philippe
: Blueprint issue with generics I certainly would not oppose extending the ext namespace, or adding a new namespace for that. But I also don't plan to spend a day on that, as there is an easy workaround : this is already available by adding a few lines of xml, or even adding a new file, those can

Re: Blueprint issue with generics

2016-09-30 Thread Guillaume Nodet
> > > > *De :* CLEMENT Jean-Philippe [mailto:jean-philippe.clement@ > fr.thalesgroup.com] > *Envoyé :* mardi 27 septembre 2016 11:12 > > *À :* user@aries.apache.org > *Objet :* RE: Blueprint issue with generics > > > > This example is a bit particular as “3” has no ty

RE: Blueprint issue with generics

2016-09-30 Thread CLEMENT Jean-Philippe
Hi Guillaume, Do you think a fallback converter option (or via a fragment) might be added to Aries? JP De : CLEMENT Jean-Philippe [mailto:jean-philippe.clem...@fr.thalesgroup.com] Envoyé : mardi 27 septembre 2016 11:12 À : user@aries.apache.org Objet : RE: Blueprint issue with generics

RE: Blueprint issue with generics

2016-09-27 Thread CLEMENT Jean-Philippe
be more interesting to have a fallback strategy isn’t it? JP De : Guillaume Nodet [mailto:gno...@apache.org] Envoyé : lundi 26 septembre 2016 21:36 À : user@aries.apache.org Objet : Re: Blueprint issue with generics Again, I'm really not sure that would be a good idea. Some use cases are really

Re: Blueprint issue with generics

2016-09-26 Thread Guillaume Nodet
eneric-aware converter or the non-generic one :) > > > > (please please please!) > > > > Regards, > > JP > > > > *De :* Guillaume Nodet [mailto:gno...@apache.org] > *Envoyé :* lundi 26 septembre 2016 18:01 > > *À :* user@aries.apache.org > *Obj

RE: Blueprint issue with generics

2016-09-26 Thread CLEMENT Jean-Philippe
r@aries.apache.org<mailto:user@aries.apache.org> Objet : Re: Blueprint issue with generics Have you been able to try the converter ? 2016-09-23 13:07 GMT+02:00 Guillaume Nodet <gno...@apache.org<mailto:gno...@apache.org>>: 2016-09-23 12:22 GMT+02:00 CLEMENT Jean-Philippe <j

Re: Blueprint issue with generics

2016-09-26 Thread Guillaume Nodet
[mailto:gno...@apache.org] > *Envoyé :* lundi 26 septembre 2016 15:19 > > *À :* user@aries.apache.org > *Objet :* Re: Blueprint issue with generics > > > > Have you been able to try the converter ? > > > > 2016-09-23 13:07 GMT+02:00 Guillaume Nodet <gno...@ap

RE: Blueprint issue with generics

2016-09-26 Thread CLEMENT Jean-Philippe
[mailto:gno...@apache.org] Envoyé : lundi 26 septembre 2016 15:19 À : user@aries.apache.org Objet : Re: Blueprint issue with generics Have you been able to try the converter ? 2016-09-23 13:07 GMT+02:00 Guillaume Nodet <gno...@apache.org<mailto:gno...@apache.org>>: 2016-09-23 12:22 GMT+02:00

Re: Blueprint issue with generics

2016-09-26 Thread Guillaume Nodet
Class().isInstance(sourceObject); > } > > @Override > public Object convert(Object sourceObject, ReifiedType targetType) throws > Exception { > return sourceObject; > } > } > > > >> >> >> JP >> >> >> >> *De

Re: Blueprint issue with generics

2016-09-23 Thread Guillaume Nodet
i 23 septembre 2016 11:36 > > *À :* user@aries.apache.org > *Objet :* Re: Blueprint issue with generics > > > > Have you tried using a Converter ? This should fix all your problems quite > easily, it's only 2 or 3 lines to add to your blueprint. > > > > 2016-09

RE: Blueprint issue with generics

2016-09-23 Thread CLEMENT Jean-Philippe
extra converters and Blueprint to get no added value? JP De : Guillaume Nodet [mailto:gno...@apache.org] Envoyé : vendredi 23 septembre 2016 11:36 À : user@aries.apache.org Objet : Re: Blueprint issue with generics Have you tried using a Converter ? This should fix all your problems quite

Re: Blueprint issue with generics

2016-09-23 Thread Guillaume Nodet
is not assigned. Does it mean it won’t be fixed? > > > > Regards, > > JP > > > > *De :* CLEMENT Jean-Philippe [mailto:jean-philippe.clement@ > fr.thalesgroup.com] > *Envoyé :* vendredi 16 septembre 2016 14:29 > *À :* user@aries.apache.org > *Objet :* RE

RE: Blueprint issue with generics

2016-09-16 Thread CLEMENT Jean-Philippe
...@bendoerr.me] Envoyé : jeudi 11 février 2016 22:39 À : user@aries.apache.org Objet : Re: Blueprint issue with generics Also would love to see this fixed. My workaround is usually this: void setSomething(Something s) to > setSomething(S s) which maintains the compile type checking. And like Jean-Phili

Blueprint issue with generics

2016-02-11 Thread CLEMENT Jean-Philippe
Dear Aries Team, I have an issue with the way generics are handled in Blueprint. I get an exception claiming that the bean conversion is not possible, but it should. Let's say I have a bean with the method setSomething(Something) called via blueprint with another bean implementing Something =>

Re: Blueprint issue with generics

2016-02-11 Thread Benjamin Doerr
Also would love to see this fixed. My workaround is usually this: void setSomething(Something s) to > setSomething(S s) which maintains the compile type checking. And like Jean-Philippe, third-party APIs mean that if I can I have to create a local extension with a hacked setter just to make