On Fri, 09 May 2008 04:06:49 GMT, thufir <hawat.thufir@[EMAIL PROTECTED]
>
wrote, quoted or indirectly quoted someone who said :
>The makeGuest is working fine, probably because the data is fine. If the
>constructor of Guest throws a DataException, though, I wouldn't want
>makeGuest to return a new Guest! I'm not quite sure what it should do,
>if not that, though...
If you do something like
Thing thing = new Thing();
And the constructor throws an exception, thing will be unmodified
since the assigment is the last step.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com


|