Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-476

Bug in equals method in ArrayList and LinkedList

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4
    • 1.5
    • core-collections
    • None

    Description

      equals method in ArrayList and LinkedList always returns true when are compared with different class objects:

      ArrayList list=new ArrayList();
      list.equals("foo"); //returns true

      Also when are compared with different List implementations (ignoring list's content)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            avilar Alejandro Vilar
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment