> From: Sylvain Wallez [mailto:[EMAIL PROTECTED]] > John Morrison wrote: > >Sylvain Wallez wrote: > > > >>So I propose that we _remove all the conditional > compilation stuff_ and > >>write mock classes where needed to ensure that _all_ source > files are > >>always compiled. > >> > >>Thoughts ? > >> > >> > > > >+1 in general, my only missgivings are legal - where do we stand > >creating 'mock' objects of somebody elses code that (I don't know > >if this is a possibility) might be GPL (or other restricted licensing > >agreement)? > > IANAL, but the mock classes are created without referring to the real > classes. They just contain the declarations of methods > actually used by > our code, and are made abstract as far as possible. > > Only thoses classes that are instanciated by our code need to be > concrete class, and the methods body is then just a "throw new > UnsupportedOperationException("this is a mock object);" > > So it can be considered as a clean room reimplementation of a > subset of > the class public interface.
In that case, an unreserved +1 > Any lawyer out there ? Unless any lawyers contradict :( J. ======================================================================= Information in this email and any attachments are confidential, and may not be copied or used by anyone other than the addressee, nor disclosed to any third party without our permission. There is no intention to create any legally binding contract or other commitment through the use of this email. Experian Limited (registration number 653331). Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]