public Accessor(String className,ClassLoader classLoader,Class[] constructorTypes,Object[] constructorArgs){
  try {
    fClass=Class.forName(className,true,classLoader);
  }
 catch (  ClassNotFoundException e) {
    fail();
  }
catch (  ExceptionInInitializerError e) {
    fail();
  }
  Constructor constructor=null;
  try {
    constructor=fClass.getDeclaredConstructor(constructorTypes);
  }
 catch (  SecurityException e2) {
    fail();
  }
catch (  NoSuchMethodException e2) {
    fail();
  }
  Assert.isNotNull(constructor);
  constructor.setAccessible(true);
  try {
    fInstance=constructor.newInstance(constructorArgs);
  }
 catch (  IllegalArgumentException e) {
    fail();
  }
catch (  InvocationTargetException e) {
    fail();
  }
catch (  InstantiationException e) {
    fail();
  }
catch (  IllegalAccessException e) {
    fail();
  }
}

public Accessor ( String className , ClassLoader classLoader , Class [ ] constructorTypes , Object [ ] constructorArgs ) { try { fClass = Class . forName ( className , true , classLoader ) ; } catch ( ClassNotFoundException e ) { fail ( ) ; } catch ( ExceptionInInitializerError e ) { fail ( ) ; } Constructor constructor = null ; try { constructor = fClass . getDeclaredConstructor ( constructorTypes ) ; } catch ( SecurityException e2 ) { fail ( ) ; } catch ( NoSuchMethodException e2 ) { fail ( ) ; } Assert . isNotNull ( constructor ) ; constructor . setAccessible ( true ) ; try { fInstance = constructor . newInstance ( constructorArgs ) ; } catch ( IllegalArgumentException e ) { fail ( ) ; } catch ( InvocationTargetException e ) { fail ( ) ; } catch ( InstantiationException e ) { fail ( ) ; } catch ( IllegalAccessException e ) { fail ( ) ; } }
creates an accessor for the given class .
