Hi All,
I'm just using the new 2.0M5 version of AppFuse and am duly impressed, especially with the new generic Daos and Managers as about half my classes don't need anything more than that. I'm using the Struts 2 modular archetype. I'm having a terrible time with my first manager test trying to get the generics based Dao to work in the constructor of the Mock. I can omit the <Foo, Long> generics specification of the Generic Dao and it compiles but then I have to cast the result which misses the point WRT the type safety of the generic version of the Dao. When I try to put the generics stuff in it keeps puking on me. Can anyone clarify the syntax for me? Sorry for such a stupid question. Following are the details: This compiles in setUp() but requires casting the result of the call to "Foo result = manager.get(id);": dao = new Mock( GenericDao.class ); This is close to what I want but I can't seem to get the syntax right, any help would be greatly appreciated: dao = new Mock( GenericDao<Foo, Long>.class ); Can anyone set me straight on how to properly do this? Sheesh... Thanks, --j __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]