Re: Using this() in constructors

2002-01-10 Thread John D. Mitchell
> "Vladimir" == Vladimir G Ivanovic <[EMAIL PROTECTED]> writes: [...] > An alternative is to use factories. Joshua Bloch has a write-up of the > benefits (and the costs) in his excellent adventure, "Effective Java" > (pp. 5-9). W.r.t. this thread, that's just another way to homogenize the sig

Re: Using this() in constructors

2002-01-09 Thread Vladimir G Ivanovic
"JDM" == John D Mitchell <[EMAIL PROTECTED]> writes: JDM> (E) I suggest that you "homogenize" your constructors' declared JDM> exceptions. I.e., make all of them throw the same set of JDM> exceptions. The easy way to get into this habit is to just go one JDM> single step further than you

Re: Using this() in constructors

2002-01-09 Thread Albert Lai
I don't know enough about when and when not this() is allowed. But from my basic understanding of exceptions, and after some coding exercise, I am confused. First, you have: Jim Hazen <[EMAIL PROTECTED]> writes: > ExampleService(String host, int timeout) > {//impl here} This signature require