Static function should not access a non-static member of class

Change-Id: Idbd8a6ba1982c49ecc2fd0b4d3476e720ab7a13b
Merge "Static function should not access a non-static member of class"