Re: [abc] tm peculiarity

From: Julian Tibble <julian.tibble@worcester.oxford.ac.uk>
Date: Tue Oct 10 2006 - 14:09:00 BST

There is a workaround:

tracematch(Object orig, Object sync, Object from) {
     sym sync after returning(sync): createSync(orig);
     sym asyncCall before: call(* *(..)) && target(orig) && this(from);

     sync asyncCall
     {
         if (sync != from)
             throw new IllegalStateException("Collection " +

                         System.identityHashCode(orig) +
                        " was synchronized. Use instance " +
                         System.identityHashCode(sync) + " instead!");
        }
}
Received on Tue Oct 10 14:09:02 2006

This archive was generated by hypermail 2.1.8 : Tue Mar 06 2007 - 16:13:30 GMT