ClassUtil: fixed find-public parent class field bug.
Added a warning in case of non-public field access.