tuscany-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amita Vadhavkar (JIRA)" <tuscany-...@ws.apache.org>
Subject [jira] Commented: (TUSCANY-2009) Java SDO's EqualityHelper doesn't compare Bytes values correctly
Date Wed, 23 Jan 2008 06:57:34 GMT

    [ 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

View raw message