The class doesn't even need to be final.
Striped down to a pure javassist test that reproduces the failure.