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

One caveat is that wrapper classes are not suited for use in callback frameworks, wherein objects pass self-references to other objects for subsequent invocations (“callbacks”). Because a wrapped object doesn’t know of its wrapper, it passes a reference to itself (this) and callbacks elude the wrapper. This is known as the SELF problem [Lieberman86]


Cover of Effective Java, 2nd Edition


Good point.