atos1990 / orika

Automatically exported from code.google.com/p/orika
0 stars 0 forks source link

TypeVariableImpl cannot be cast to java.lang.Class #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run attached class' main method

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
1.0

Please provide any additional information below.

Hi,

there is some problem with generic type collections. Is it possible to fix 
this? In case such generic types Orika tries to find class with generic name, 
and in case <P extends Person> parameter, there is no 'P' class.

Original issue reported on code.google.com by mathew...@gmail.com on 13 Feb 2012 at 2:39

Attachments:

GoogleCodeExporter commented 9 years ago
We're working on the issue we will release it soon

Original comment by elaat...@gmail.com on 26 Feb 2012 at 1:03

GoogleCodeExporter commented 9 years ago
This should now be fixed with the 1.1-generics branch (soon to be merged into 
trunk).
Take a look at ma.glasnost.orika.test.generics.GenericCollectionsTestCase which 
contains your provided test, along with example of how to map it using the 
newly provided generics-support methods.

Original comment by matt.deb...@gmail.com on 7 Mar 2012 at 10:47