Commits

Fabian Kraemer committed aff9b30

JRA-26808: Inverted setMutable check for DirtyFlagMap, otherwise it would lock if requested with true.

  • Participants
  • Parent commits b271439
  • Branches quartz_1-5-1-atlassian-x

Comments (0)

Files changed (1)

File src/java/org/quartz/utils/DirtyFlagMap.java

 
 
     public void setMutable(boolean mutable) {
-        if(locked.compareAndSet(!mutable, mutable))
+        if(locked.compareAndSet(mutable, !mutable))
         {
             // the reference is leaked anyway, e.g. getWrappedMap and entrySet, so no further attempt for
             // synchronisation. normally you'd have a custom decorator blocking modification if the flag is set, but