[jdom-interest] instanceof

Michael Kay mike at saxonica.com
Tue Jan 23 16:27:05 PST 2007

> Using instanceof in large 
> systems that import third party libraries is not [a "code smell"].

The only problem is that you can't tell in advance when it's going to break:
as when you've written "x instanceof Element" and then discover to your
horror that Oracle's implementation of a document node also implements the
Element interface.

Michael Kay

More information about the jdom-interest mailing list