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

Misuse of iterator.remove in DefaultModelBuilder

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 3.1.1
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            huntc@internode.on.net Christopher Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: