inconsistent return value in clazz define