Maven 2 & 3

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

Hide
Jared Roberts added a comment -

This patch should fix the issue.

Show
Jared Roberts added a comment - This patch should fix the issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: