Uploaded image for project: 'Polygene'
  1. Polygene
  2. POLYGENE-107

Entity SPI: JSONEntityState cloning logic is flawed

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Labels:
      None

      Description

      The cloneStateIfGlobalStateLoaded() method of JSONEntityState is called before any change is made to the entity state.

      This method starts with the following check:

      if( isStateNotCloned() )
      {
      return;
      }
      // Do the clone

      And the (private) isStateNotCloned() method returns:
      status == EntityStatus.LOADED

      IOW, the code says that it will clone state if status is loaded, but it does the opposite!

      See discussion: http://s.apache.org/1QI

        Attachments

          Activity

            People

            • Assignee:
              eskatos Paul Merlin
              Reporter:
              tiborm Tibor Mlynarik
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: