infinispan/infinispan — pull request #1160 by anistor (2012-06-04 20:35:01+00:00)
Title: ISPN-2092 - Write skew check not detected in LOCAL mode when doing multi...

...ple modifications

* OptimisticLockingInterceptor does not handle PrepareCommands properly in LOCAL
mode when there are multiple modifications. LocalWriteSkewCheckingLockAcquisitionVisitor
is not invoked on this code path and no write skew check is done.

* DeltaAwareCacheEntry.getStateFlags() does not properly delegate to the wrapped
entry and reports incorrect flags leading to false write skew check detection.

* Remove some unused imports from related classes

* Add WriteSkewTest.testCheckWriteSkewWithMultipleModifications() and fix some generics related warnings

Jira issue: https://issues.jboss.org/browse/ISPN-2092

Please also merge t_ISPN-2092_5 into 5.1.x.