You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2016/10/15 19:45:20 UTC

[jira] [Commented] (MNG-5529) Misuse of iterator.remove in DefaultModelBuilder

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

Michael Osipov commented on MNG-5529:
-------------------------------------

Please provide a patch against current master.

> Misuse of iterator.remove in DefaultModelBuilder
> ------------------------------------------------
>
>                 Key: MNG-5529
>                 URL: https://issues.apache.org/jira/browse/MNG-5529
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>            Reporter: Christopher Hunt
>              Labels: patch-pending
>
> Line 905 of DefaultModelBuilder removes elements from the list of dependencies for dependency management. The JDK states that the iterator's remove operation is optional and when it is not present then an UnsupportedOperationException will be thrown.
> My recommendation is that the list of dependencies returned is composed into an array list for working purposes.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)