jmock is opinionated software and and they don't want you to mock concrete classes or 3rd party apis, so stripping the final from other people's classes and methods isn't relevant to their interests. consequently there will be no unfinalizing in jmock.
there is however unfinalizing in jdave. you can run the unfinalizer separately of jdave if you like. it works right now (see the acceptance spec), you just need to put -javaagent:/path/to/unfinalizerjar as a VM argument.
my friendly colleague even fixed the POM so that it includes Premain-Class: automatically.
Tuesday, September 25, 2007
Subscribe to:
Post Comments (Atom)
2 comments:
Ou jeah! Truly great. Does it unfinalize everything, or only specified classes? If the latter, then this is really something remarkable. When will there be a release?
now it finalizes everything it can. can you please explain the situation where you would only want to unfinalize specific classes?
Post a Comment