O'Reilly logo
  • Shayne Riley thinks this is interesting:

The best solution to this problem is to prohibit subclassing in classes that are not designed and documented to be safely subclassed.

From

Cover of Effective Java, 2nd Edition

Note

As he says later, this is controversial.