I thought it might be fun to pose as a question an issue that I just resolved, so you advanced
Java people can demonstrate your knowledge!
We are all familiar with the toString() method, which is declared and defined in java.lang.Object.
Notice that it is declared
not to throw any checked Exceptions.
In my program, I called toString() on an Object and got an UndeclaredThrowableException. This was a surprise, as all Objects ought to have a toString() and it is not allowed to throw any checked Exceptions.
What was going on?
(As I say, I've resolved this issue, but I thought people might be interested).
[ January 31, 2003: Message edited by: Peter Chase ]