Fail if the enclosed class is non-static