Hi! Dan OConnor wrote: > I think we should simply ensure that equals and hashCode are > implemented in a class derived from Object. I don't think we should > try to test the functionality of these methods if they exist, as this > second test has ample room for mistakes and little upside. That would be a simpler test, yes. > The code to do this could involve calling "getDeclaredMethod" on > each class object in the inheritance tree until you reached Object > (or found an appropriate method). You would travel up the > inheritance heirarchy by using getSuperclass. getMethod is preferred and easier since these two are public methods. /Rickard -- Rickard �berg Email: [EMAIL PROTECTED] http://www.telkel.com http://www.jboss.org http://www.dreambean.com -- -------------------------------------------------------------- To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] Problems?: [EMAIL PROTECTED]
- [jBoss-User] Real problems with primary key deployment Tim Squires
- Re: [jBoss-User] Real problems with primary key deplo... Rickard �berg
- Re: [jBoss-User] Real problems with primary key d... Juha-P Lindfors
- Re: [jBoss-User] Real problems with primary key deplo... Juha-P Lindfors
- Re: [jBoss-User] Real problems with primary key d... Rickard �berg
- Re: [jBoss-User] Real problems with primary key deplo... Aaron Mulder
- Re: [jBoss-User] Real problems with primary key d... Aaron Mulder
- Re: [jBoss-User] Real problems with primary k... Rickard �berg
- Re: [jBoss-User] Real problems with primary key d... Dan OConnor
- Re: [jBoss-User] Real problems with primary k... Rickard �berg
- Re: [jBoss-User] Real problems with prima... Dan OConnor
- Re: [jBoss-User] Real problems with ... Rickard �berg
- Re: [jBoss-User] Real problems w... Dan OConnor
- Re: [jBoss-User] Real problems with primary k... Aaron Mulder
- Re: [jBoss-User] Real problems with prima... Juha Lindfors
- Re: [jBoss-User] Real problems with primary key deplo... Rick Horowitz
- RE: [jBoss-User] Real problems with primary key deplo... Tim Squires
- RE: [jBoss-User] Real problems with primary key deplo... Jay Walters
- RE: [jBoss-User] Real problems with primary key deplo... Tim Squires
