Field findField(String name,int lineno,int override) throws ConfigurationException {
  int dot=name.lastIndexOf('.');
  if (dot < 0) {
    oops("entry not found: " + name,lineno,override);
  }
  String className=name.substring(0,dot);
  Class c=findClass(className,lineno,override,true);
  if (c == null) {
    oops("entry or field not found: " + name,lineno,override);
  }
  String fieldName=name.substring(dot + 1);
  checkPackageAccess(c);
  try {
    Field field=c.getField(fieldName);
    if (!Modifier.isStatic(field.getModifiers())) {
      oops(fieldName + " is not a static field of class " + className,lineno,override);
    }
    return field;
  }
 catch (  NoSuchFieldException e) {
    oops(fieldName + " is not a public field of class " + className,lineno,override);
    return null;
  }
}

Field findField ( String name , int lineno , int override ) throws ConfigurationException { int dot = name . lastIndexOf ( '.' ) ; if ( dot < 0 ) { oops ( "entry not found: " + name , lineno , override ) ; } String className = name . substring ( 0 , dot ) ; Class c = findClass ( className , lineno , override , true ) ; if ( c == null ) { oops ( "entry or field not found: " + name , lineno , override ) ; } String fieldName = name . substring ( dot + 1 ) ; checkPackageAccess ( c ) ; try { Field field = c . getField ( fieldName ) ; if ( ! Modifier . isStatic ( field . getModifiers ( ) ) ) { oops ( fieldName + " is not a static field of class " + className , lineno , override ) ; } return field ; } catch ( NoSuchFieldException e ) { oops ( fieldName + " is not a public field of class " + className , lineno , override ) ; return null ; } }
resolves a field name to a field .
