Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-3240

maven-model RepositoryBase.equals() causes ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0, 2.0.7
    • 2.0.8
    • None
    • None

    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.

      Attachments

        1. MNG-3240-maven-model.patch
          0.9 kB
          jroberts

        Activity

          People

            carlos Carlos Sanchez Gonzalez
            jroberts jroberts
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: