Is there a shorthand way to get a method reference to a local static method the same way the this
keyword or class prefix can be dropped when invoking a method?
The obvious thing would be to use ::myStaticMethod
but that does not seem to compile:
class MyClass {
static void myStaticMethod () {}
static Runnable runner = ::myStaticMethod; // doesn't compile
// requires MyClass prefix despite being in the same class
}