setClass() and setType() declaration were not compatible with DocInterface definition