History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: UNI-176
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Tim Ducheyne
Reporter: yura
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Unitils

Mock injection does not work with generic types sample Mock<GenericDao<T, PK>> mockDao;

Created: 06/Nov/09 10:13 AM   Updated: 11/Nov/09 06:10 PM
Component/s: mock
Affects Version/s: None
Fix Version/s: 3.1


 Description  « Hide
Mock injection does not work with generic types sample Mock<GenericDao<T, PK>> mockDao;

 All   Comments   Change History      Sort Order:
Tim Ducheyne - 11/Nov/09 06:10 PM
There indeed was a problem with generic type handling (especially with types with more than 1 generic type class<A, B>)
The generics implementation in Java is very difficult to work with. A lot of information is not accessible because of the type erasure for example.

I've had to rework the type handling. Instead of Class I know use Type.

Thanks for the report,
Tim