Return-Path: Delivered-To: apmail-ws-tuscany-dev-archive@locus.apache.org Received: (qmail 64417 invoked from network); 23 Jan 2008 06:58:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 Jan 2008 06:58:09 -0000 Received: (qmail 89545 invoked by uid 500); 23 Jan 2008 06:57:58 -0000 Delivered-To: apmail-ws-tuscany-dev-archive@ws.apache.org Received: (qmail 89521 invoked by uid 500); 23 Jan 2008 06:57:58 -0000 Mailing-List: contact tuscany-dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: tuscany-dev@ws.apache.org Delivered-To: mailing list tuscany-dev@ws.apache.org Received: (qmail 89505 invoked by uid 99); 23 Jan 2008 06:57:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jan 2008 22:57:58 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Jan 2008 06:57:42 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0BDEC714204 for ; Tue, 22 Jan 2008 22:57:34 -0800 (PST) Message-ID: <31833476.1201071454036.JavaMail.jira@brutus> Date: Tue, 22 Jan 2008 22:57:34 -0800 (PST) From: "Amita Vadhavkar (JIRA)" To: tuscany-dev@ws.apache.org Subject: [jira] Commented: (TUSCANY-2009) Java SDO's EqualityHelper doesn't compare Bytes values correctly In-Reply-To: <8369973.1200952850548.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TUSCANY-2009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12561598#action_12561598 ] Amita Vadhavkar commented on TUSCANY-2009: ------------------------------------------ The patch looks fine to me. There is another pre-existing issue in the current SDO code base. Please see - http://www.mail-archive.com/tuscany-user@ws.apache.org/msg02434.html, is this a known issue and is there a solution to it? > Java SDO's EqualityHelper doesn't compare Bytes values correctly > ---------------------------------------------------------------- > > Key: TUSCANY-2009 > URL: https://issues.apache.org/jira/browse/TUSCANY-2009 > Project: Tuscany > Issue Type: Bug > Components: Java SDO Implementation > Affects Versions: Java-SDO-1.0 > Environment: n/a > Reporter: David T. Adcox > Fix For: Java-SDO-Next > > Attachments: 2009.patch, Test2009.java > > > Comparison of two Bytes values fails when it should succeed. The test for equality passes through the EqualityHelperImpl.equal method. In that method, the test is passed to EcoreUtil.haveEqualAttribute(EObject, EObject, EAttribute). For a simple type, it defers to java's '==' operator. So, two different object arrays are being compared, not for their contents, but rather if they are the same object. Attached is a test case which demonstrates this issue. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org For additional commands, e-mail: tuscany-dev-help@ws.apache.org