ExceptionSet dup = new ExceptionSet(); for (Iterator<ThrownException> i = iterator(); i.hasNext(); ) { dup.addAndAdopt(i.next().duplicate()); }
ExceptionSet dup = factory.createExceptionSet(); dup.exceptionSet.clear(); dup.exceptionSet.or(this.exceptionSet); dup.explicitSet.clear(); dup.explicitSet.or(this.explicitSet); dup.size = this.size; dup.universalHandler = this.universalHandler; dup.commonSupertype = this.commonSupertype;
	public ExceptionSet duplicate() {		ExceptionSet dup = new ExceptionSet();		for (Iterator<ThrownException> i = iterator(); i.hasNext(); ) {			dup.addAndAdopt(i.next().duplicate());		}		return dup;	}