pbwest 2004/02/14 19:45:53 Modified: src/java/org/apache/fop/fo/pagination Tag: FOP_0-20-0_Alt-Design PageSequenceMaster.java Log: Synchronize the clone() method Revision Changes Path No revision No revision 1.1.2.7 +14 -0 xml-fop/src/java/org/apache/fop/fo/pagination/PageSequenceMaster.java Index: PageSequenceMaster.java =================================================================== RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/pagination/PageSequenceMaster.java,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -u -r1.1.2.6 -r1.1.2.7 --- PageSequenceMaster.java 12 Feb 2004 06:42:45 -0000 1.1.2.6 +++ PageSequenceMaster.java 15 Feb 2004 03:45:52 -0000 1.1.2.7 @@ -480,6 +480,20 @@ * Returns a new iterator across <code>masters</code> */ public PageMasterIterator() {} + + /** + * Clone the iterator. The purpose of this operation is to allow + * interested methods to attempt layouts of the same flow data using + * different masters, e.g., laying out a 'last' page and 'rest' page + * from the same flow data. + * + * @see java.lang.Object#clone() + */ + protected Object clone() throws CloneNotSupportedException { + synchronized (this) { + return super.clone(); + } + } /** * @return true if any repetitions on any masters remain in the
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]