Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-2009

Java SDO's EqualityHelper doesn't compare Bytes values correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Java-SDO-1.0
    • Java-SDO-1.1
    • None
    • n/a

    Description

      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.

      Attachments

        1. 2009.patch
          4 kB
          David T. Adcox
        2. Test2009.java
          2 kB
          David T. Adcox

        Activity

          People

            Unassigned Unassigned
            dtadcox David T. Adcox
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: