I have the following Java program that I did not expect to compile, but it did:
class Test { public static void f() { } void m() { Test.<String>f(); } }
Why does javac allow calling a non-parameterized method this way?
My java compiler version: javac 1.7.0_75
source share