Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8137202

Violation of equals()/hashCode() general contract for all DeviceConfig-s

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2
    • Resolution: Unresolved
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: embedded
    • Labels:
    • Subcomponent:
      dio
    • CPU:
      generic
    • OS:
      generic

      Description

      Using, latest DIO VTS 1.1 against see rpi/b235

      All tests #EqHashCode fail. The tests fail due to
      two instances are expected to be equal, but

      1. equals() returns false.
      2. have different hashCode() return values.

      For example:
      api/jdk/dio/adc/ADCChannelConfig/index.html#EqHashCode

      -------------------------------------------------------------
      command(after mapping): com.sun.tck.cdc.lib.ExecCLDCTestOnCDCSameJVMCmd com.oracle.tests.jdk.dio.adc.ADCChannelConfig.EqHashCodeTests
      testEqualsNull: Passed. OKAY
      testEquals: Passed. OKAY
      indices: [i, j]=[0, 0]
      cfg1.hashCode() = 27974528
      cfg2.hashCode() = 16906472
      testHashCodeSame: Failed. Two instances are equal but have different hashCode() values
      indices: [i]=[0]
      original.hashCode() = 23766942
      copy.hashCode() = 18291894
      testHashCodeCop: Failed. Copy of Config instance, hashCode() has different values, see log for details.
      orig config param: -1, new config param: -1
      testEqualsChannelNumberNumber: Failed. See log for details
      orig config controller name : null, new config controller name: null
      testEqualsControllerName: Failed. See log for details
      orig config param: 0, new config param: 0
      testEqualsControllerNumber: Failed. See log for details
      orig config param: 0, new config param: 0
      testEqualsInputBufferSize: Failed. See log for details
      orig config param: 1, new config param: 1
      testEqualsSetResolution: Failed. See log for details
      orig config controller name : 1, new config controller name: 1
      testEqualsSetResolutionIAE: Failed. See log for details
      orig config param: 1, new config param: 1
      testEqualsSetSamplingInterval: Failed. See log for details
      orig config controller name : 1, new config controller name: 1
      testEqualsSetSamplingIntervalIAE: Failed. See log for details
      orig config param: 1, new config param: 1
      testEqualsSamplingTime: Failed. See log for details
      orig config controller name : 1.0, new config controller name: 1.0
      testEqualsScaleFactor: Failed. See log for details
      testSetScaleFactorIAE: Passed. OKAY
      testDefaultParams: Passed. OKAY

        Attachments

          Activity

            People

            • Assignee:
              snazarki Sergey Nazarkin
              Reporter:
              bkvartsk Boris Kvartskhava
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: