Static method code generation is incorrect.