Return-Path: X-Original-To: apmail-db-torque-dev-archive@www.apache.org Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 125A0D0EA for ; Mon, 12 Nov 2012 21:51:13 +0000 (UTC) Received: (qmail 62756 invoked by uid 500); 12 Nov 2012 21:51:12 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 62691 invoked by uid 500); 12 Nov 2012 21:51:12 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 62563 invoked by uid 99); 12 Nov 2012 21:51:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Nov 2012 21:51:12 +0000 Date: Mon, 12 Nov 2012 21:51:12 +0000 (UTC) From: "Thomas Fox (JIRA)" To: torque-dev@db.apache.org Message-ID: <303756441.103152.1352757072742.JavaMail.jiratomcat@arcas> In-Reply-To: <1055802976.102498.1352750832557.JavaMail.jiratomcat@arcas> Subject: [jira] [Reopened] (TORQUE-243) Criterion gets modified by Criteria MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TORQUE-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Fox reopened TORQUE-243: ------------------------------- To have consistent behavior, the same should be valid for Criterion.and and Criterion.or > Criterion gets modified by Criteria > ----------------------------------- > > Key: TORQUE-243 > URL: https://issues.apache.org/jira/browse/TORQUE-243 > Project: Torque > Issue Type: Bug > Affects Versions: 4.0-beta1 > Reporter: Thomas Fox > Assignee: Thomas Fox > Fix For: 4.0-beta2 > > > 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. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org