Uploaded image for project: 'Torque'
  1. Torque
  2. TORQUE-243

Criterion gets modified by Criteria

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0-beta1
    • 4.0
    • None
    • None

    Description

      In the situation
      Criterion criterion = new Criterion(SomePeer.COLUMN, value);
      Criteria criteria = new Criteria().where(criterion);
      criteria.and(SomePeer, someOtherColumn);

      the criteria.and() in the last line also unexpectedly changes the original criterion.
      Expected behaviour: The Criterion should not be changed by changing the criteria object.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tfischer Thomas Fox
            tfischer Thomas Fox
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment