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

Entity SPI: JSONEntityState cloning logic is flawed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.1
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: