Hi all, I'm trying to extend a class so that it has a different toString, but only in specific cases.
I don't know for sure if this is possible, but what I'd like to do is: static String toString(UnicastRemoteObject self) { try { return self.getName(); } catch (MissingMethodException e) { return // return the to string from Unicast. } } Is it possible at all to call the original toString? Regards, -- Alberto Ingenito