/** * Overrides the BaseResourceCollectionContainer version to recurse on nested ResourceComparators. * * @param stk the stack of data types to use (recursively). * @param p the project to use to dereference the references. * @throws BuildException on error. */ protected synchronized void dieOnCircularReference(Stack stk, Project p) throws BuildException { if (isChecked()) { return; } if (isReference()) { super.dieOnCircularReference(stk, p); } else { DataType.invokeCircularReferenceCheck(comp, stk, p); setChecked(true); } }
/** * Overrides the BaseResourceCollectionContainer version to recurse on nested ResourceComparators. * * @param stk the stack of data types to use (recursively). * @param p the project to use to dereference the references. * @throws BuildException on error. */ protected synchronized void dieOnCircularReference(Stack<Object> stk, Project p) throws BuildException { if (isChecked()) { return; } // check nested collection super.dieOnCircularReference(stk, p); if (!isReference()) { DataType.pushAndInvokeCircularReferenceCheck(comp, stk, p); setChecked(true); } }