public Object run() { f.setAccessible(true); return null; } }); return f;
final Field f = klass.getDeclaredField(name); AccessController.doPrivileged(new PrivilegedAction() { public Object run() { f.setAccessible(true); return null; } }); return f; } catch (java.lang.NoSuchFieldException e) { throw new InvalidClassException ("no field called " + name + " in class " + klass.getName()); }
  private static Field getField (Class klass, String name)    throws java.lang.NoSuchFieldException  {    final Field f = klass.getDeclaredField(name);    AccessController.doPrivileged(new PrivilegedAction()      {	public Object run()	{	  f.setAccessible(true);	  return null;	}      });    return f;  }