It is a static warning if C does not denote a class in the current scope. It is a static warning if C does not declare a static method or getter m. These were compile-time errors but are now defined as warnings.