From: Davis, B. A. <b....@ra...> - 2004-04-16 14:12:59
|
I am trying to do the patch for the mocking non-final class at: http://sourceforge.net/tracker/index.php?func=detail&aid=761544&group_id=181 89&atid=318189 I am having a problem with getting it to work. I applied the patch and when I try to mock a concrete like so: Mock something = new Mock(ArrayList.class); class I get: "IllegalArguementException java.util.ArrayList is not an interface." I have gone through the code of the cglib and sure enough it is checking to see if it is an interface and throwing the Exception. I put the cglib1.0 and asm on my classpath so I do not think it is a library issue but again they do not say what version of them to get. My question is am I misunderstanding what this does or am I doing something wrong? Thanks for your help. Brian |