T < x < B

Too long to tweet, too short to blog.
Apr 04
Permalink
Now the situation is more like the case where doSomething() was a final method in Foo — the compiler can convert the virtual method call into a direct dispatch (already an improvement) and, further, has the option to inline doSomething(), as well. (Converting a virtual method call to a direct method call is called monomorphic call transformation.)