Re: Accessing generic type information of bound parameters

2014-05-13 Thread Michael Wyraz
I have added a comment there concerning the behaviour for literal bindings. But I dont have permission to change the affected version. Thanks Lance, you're correct of course. Michael, as this is still relevant to you, could you please update the "Affects Version/s:" field of your JIRA issue (TAP

Re: Accessing generic type information of bound parameters

2014-05-13 Thread Jochen Kemnade
Hi Michel, Am 12.05.2014 10:58, schrieb Michael Wyraz: I can access the type of a bound parameter using ComponentResources.getBoundType(parameterName). But for List it returns (of course) List.class. Is there a way to access the generic parameters of the bound type somehow? No, there is no way

Re: Accessing generic type information of bound parameters

2014-05-13 Thread Jochen Kemnade
Thanks Lance, you're correct of course. Michael, as this is still relevant to you, could you please update the "Affects Version/s:" field of your JIRA issue (TAP5-1213) accordingly? Am 13.05.2014 11:38, schrieb Lance Java: No, there is no way to access the generic type, this information is lo

Re: Accessing generic type information of bound parameters

2014-05-13 Thread Lance Java
Just having a quick poke through the code this could be fixed by adding the following methods to the public API. java.lang.reflect.Type PropertyConduit.getPropertyGenericType() java.lang.reflect.Type Binding.getBindingGenericType() java.lang.reflect.Type ComponentResources.getBoundGenericType(Stri

Re: Accessing generic type information of bound parameters

2014-05-13 Thread Lance Java
> No, there is no way to access the generic type, this information is lost during the compilation process. That's not actually correct. Lets consider the following class: public class MyClass { private List foos; public List getBars() { ... } public void doStuffWithBaz() {

Accessing generic type information of bound parameters

2014-05-12 Thread Michael Wyraz
Hi, I can access the type of a bound parameter using ComponentResources.getBoundType(parameterName). But for List it returns (of course) List.class. Is there a way to access the generic parameters of the bound type somehow? I need this for correct (automatic) type coercion in some special cas