Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-551

A bug in "Concept.equals" method

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Could
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: OpenMRS 1.6.0
    • Component/s: None
    • Labels:

      Description

      I found a bug in line !#170 of Concept.java. We should replace that statement "return c == obj;" with "return this == obj;". Apparently, c is always same with obj, what we want is to compare "this" with "obj".

        Gliffy Diagrams

          Attachments

          1. 2127.patch
            0.5 kB
          2. 2127unit-test.patch
            1 kB
          3. UnitTest.patch
            0.9 kB

            Activity

              People

              Assignee:
              luzhuangwei Zhuangwei Lu [X] (Inactive)
              Reporter:
              luzhuangwei Zhuangwei Lu [X] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: