> Yea, I just noticed this as well the other day...the problem with
> doing that
> is that there could be a case where you would want that Exception to be
> thrown...therefore, write your code like this:
>
> try
> {
> return getString()
> }
> catch (ClassCastException cce)
> {
> String s = getVector().toString();
> return s.substring (1,s.length()-1);
> }
>
> -jon
WHY would you want a ClassCastException when checking the values of property
files. There must be more reasonable exceptions to throw.
Magnus
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]