Maven
  1. Maven
  2. MNG-3240

maven-model RepositoryBase.equals() causes ClassCastException

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0, 2.0.7
    • Fix Version/s: 2.0.8
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      1

      Description

      The equals(Object) method of RepositoryBase does not check the type of the input before casting it to RepositoryBase. This behavior violates the contract of Object.equals(Object) and causes ClassCastExceptions when any other type of object is passed in.

        Activity

          People

          • Assignee:
            Carlos Sanchez
            Reporter:
            Jared Roberts
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: