[ 
https://issues.apache.org/jira/browse/FELIX-6773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17948455#comment-17948455
 ] 

Richard S. Hall commented on FELIX-6773:
----------------------------------------

We probably should add a similar method for hashCode()...

> ResolverImpl downloading bundles it doesn't need to
> ---------------------------------------------------
>
>                 Key: FELIX-6773
>                 URL: https://issues.apache.org/jira/browse/FELIX-6773
>             Project: Felix
>          Issue Type: Bug
>          Components: Bundle Repository (OBR)
>    Affects Versions: bundlerepository-2.0.10
>            Reporter: James Roome
>            Priority: Minor
>
> LazyLocalResourceImpl doesn't implement the equals method. Due to this when 
> it is compared to another Resource with the same symbolic name and version is 
> returns false.
> Impacts: ResolverImpl, which will do an unneeded download and update, due to 
> this check failing:
> {code:java}
> if (!localResource.equals(deployResource)){code}
> Fix: Implement equals in LazyLocalResourceImpl:
> {code:java}
> public boolean equals(Object o) { return getResource().equals(o); }{code}
> I'll submit the above fix as a pull request on the apache-dev github repo.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to