java.lang.IllegalArgumentException: The 'no duplicates' constraint is violated

GitHub | NumberFourAG | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    The 'no duplicates' constraint is violated

    at org.eclipse.emf.common.util.AbstractEList.set()
  2. org.eclipse.emf.common
    AbstractEList$EListIterator.set
    1. org.eclipse.emf.common.util.AbstractEList.set(AbstractEList.java:264)
    2. org.eclipse.emf.common.util.AbstractEList$EListIterator.doSet(AbstractEList.java:959)
    3. org.eclipse.emf.common.util.AbstractEList$EListIterator.set(AbstractEList.java:937)
    3 frames
  3. Java RT
    Collections.sort
    1. java.util.List.sort(List.java:482)
    2. java.util.Collections.sort(Collections.java:175)
    2 frames
  4. eu.numberfour.ide
    N4JSOrganizeImports.lambda$1
    1. eu.numberfour.ide.n4js.ui.organize.imports.N4JSOrganizeImports.sortByName(N4JSOrganizeImports.java:458)
    2. eu.numberfour.ide.n4js.ui.organize.imports.N4JSOrganizeImports.extractPureText(N4JSOrganizeImports.java:615)
    3. eu.numberfour.ide.n4js.ui.organize.imports.N4JSOrganizeImports.lambda$1(N4JSOrganizeImports.java:181)
    3 frames