Edit: another one is swapping code by swapping class loaders. That can retain static references in the runtime class loader.
Edit: another one is swapping code by swapping class loaders. That can retain static references in the runtime class loader.