R
Roedy Green
Actually, HotSpot ignores the final flag (although a few methods are
recognised as intrinsics, which may make a difference). And it's quite
happy to inline code called through interfaces.
But then if someone later overrides the non final code, it has to go
into a panic, stop everything,and regenerate all optimised machine
code that calls the overridden class. It can no longer inline the code
it was presuming was for them moment as if final.