Program: 68884
Project: 68884
Buggy source:
/** 
 * Build and return the factory, using its default constructor.
 */
protected Object buildFactoryUsingDefaultConstructor() throws DescriptorException {
  try {
    if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()) {
      try {
        return AccessController.doPrivileged(new PrivilegedInvokeConstructor(this.buildFactoryDefaultConstructor(),(Object[])null));
      }
 catch (      PrivilegedActionException exception) {
        Exception throwableException=exception.getException();
        if (throwableException instanceof InvocationTargetException) {
          throw DescriptorException.targetInvocationWhileConstructorInstantiationOfFactory(this.getDescriptor(),throwableException);
        }
 else         if (throwableException instanceof IllegalAccessException) {
          throw DescriptorException.illegalAccessWhileConstructorInstantiationOfFactory(this.getDescriptor(),throwableException);
        }
 else {
          throw DescriptorException.instantiationWhileConstructorInstantiationOfFactory(this.getDescriptor(),throwableException);
        }
      }
    }
 else {
      return PrivilegedAccessHelper.invokeConstructor(this.buildFactoryDefaultConstructor(),(Object[])null);
    }
  }
 catch (  InvocationTargetException exception) {
    throw DescriptorException.targetInvocationWhileConstructorInstantiationOfFactory(this.getDescriptor(),exception);
  }
catch (  IllegalAccessException exception) {
    throw DescriptorException.illegalAccessWhileConstructorInstantiationOfFactory(this.getDescriptor(),exception);
  }
catch (  InstantiationException exception) {
    throw DescriptorException.instantiationWhileConstructorInstantiationOfFactory(this.getDescriptor(),exception);
  }
catch (  NoSuchMethodError exception) {
    throw DescriptorException.noSuchMethodWhileConstructorInstantiationOfFactory(this.getDescriptor(),exception);
  }
catch (  NullPointerException exception) {
    throw DescriptorException.nullPointerWhileConstructorInstantiationOfFactory(this.getDescriptor(),exception);
  }
}

Fixed version (ground truth):
/** 
 * Build and return the factory, using its default constructor.
 */
protected Object buildFactoryUsingDefaultConstructor() throws DescriptorException {
  try {
    if (PrivilegedAccessHelper.shouldUsePrivilegedAccess()) {
      try {
        return AccessController.doPrivileged(new PrivilegedInvokeConstructor(buildFactoryDefaultConstructor(),(Object[])null));
      }
 catch (      PrivilegedActionException exception) {
        Exception throwableException=exception.getException();
        if (throwableException instanceof InvocationTargetException) {
          throw DescriptorException.targetInvocationWhileConstructorInstantiationOfFactory(getDescriptor(),throwableException);
        }
 else         if (throwableException instanceof IllegalAccessException) {
          throw DescriptorException.illegalAccessWhileConstructorInstantiationOfFactory(getDescriptor(),throwableException);
        }
 else {
          throw DescriptorException.instantiationWhileConstructorInstantiationOfFactory(getDescriptor(),throwableException);
        }
      }
    }
 else {
      return PrivilegedAccessHelper.invokeConstructor(buildFactoryDefaultConstructor(),(Object[])null);
    }
  }
 catch (  InvocationTargetException exception) {
    throw DescriptorException.targetInvocationWhileConstructorInstantiationOfFactory(getDescriptor(),exception);
  }
catch (  IllegalAccessException exception) {
    throw DescriptorException.illegalAccessWhileConstructorInstantiationOfFactory(getDescriptor(),exception);
  }
catch (  InstantiationException exception) {
    throw DescriptorException.instantiationWhileConstructorInstantiationOfFactory(getDescriptor(),exception);
  }
catch (  NoSuchMethodError exception) {
    throw DescriptorException.noSuchMethodWhileConstructorInstantiationOfFactory(getDescriptor(),exception);
  }
catch (  NullPointerException exception) {
    throw DescriptorException.nullPointerWhileConstructorInstantiationOfFactory(getDescriptor(),exception);
  }
}