--- jsr166/src/jsr166y/Phaser.java 2009/08/25 16:50:24 1.45 +++ jsr166/src/jsr166y/Phaser.java 2009/08/30 11:08:25 1.46 @@ -781,12 +781,13 @@ public class Phaser { * property. * *

You may override this method to perform an action with side - * effects visible to participating tasks, but doing so requires - * care: Method {@code onAdvance} may be invoked more than once - * per transition. Further, unless all parties register before - * any arrive, and all {@link #awaitAdvance} at each phase, then - * you cannot ensure lack of interference from other parties - * during the invocation of this method. + * effects visible to participating tasks, but it is only sensible + * to do so in designs where all parties register before any + * arrive, and all {@link #awaitAdvance} at each phase. + * Otherwise, you cannot ensure lack of interference from other + * parties during the invocation of this method. Additionally, + * method {@code onAdvance} may be invoked more than once per + * transition if registrations are intermixed with arrivals. * * @param phase the phase number on entering the barrier * @param registeredParties the current number of registered parties