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

GitHub | NumberFourAG | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards 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